New compiler options

Compiler options can be specified on the command line or through directives embedded in your application source files.

New command line options

The following table summarizes command line options new to XL Fortran. You can find detailed syntax and usage information for all compiler options in Compiler options reference.

Option Description and remarks
-qenum The -qenum compiler option specifies the amount of storage used by enumerators defined with the ENUM statement.
-qlanglvl This release adds the 2003std and 2003pure suboptions to the -qlanglvl compiler option.
2003std
Accepts the language that the ISO Fortran 95 standard specifies, as well as all Fortran 2003 features supported by XL Fortran, and reports anything else as an error.
2003pure
The same as 2003std except that it also reports errors for any obsolescent Fortran 2003 features used.
-qlibansi This option is now recognized by the entire compiler, and not just by the IPA optimizer. It instructs the compiler to assume that all functions with the name of an ANSI C defined library function are in fact the library functions.
-qlinedebug This new compiler option enables minimal generation (line number and source file name) of information for use by a debugger. This compiler option can be specified on the command line or in your program source code as a @PROCESS statement.
-qlist The -qlist compiler option adds new offset and nooffset suboptions. Specifying -qlist=offset instructs the compiler to show object listing offsets from the start of a function rather than from the start of code generation.
-qport This release adds clogicals and noclogicals as new suboptions to the -qport compiler option. Specifying -qport=clogicals together with -qintlog instructs the compiler to treat all non-zero integers used in logical expressions as TRUE. This option is useful when porting applications from other Fortran compilers that expect this behavior.

Related Information