Other new or changed compiler options

Compiler options can be specified on the command line or through directives embedded in your application source files. See the XL C/C++ Compiler Reference for detailed descriptions and usage information for these and other compiler options.

Table 1. Other new or changed compiler options
Option/directive Description
-C! Specifying the -C! compiler option removes comments from preprocessed output.
-qcommon | -qnocommon With -qcommon in effect, uninitialized global variables are allocated in the common section of the object file. When -qnocommon is in effect, uninitialized global variables are initialized to zero and allocated in the data section of the object file.
-qoptdebug|-qnooptdebug When used with optimization levels of -O3 or higher, the new -qoptdebug option instructs the compiler to produce optimized pseudocode that can be read by a symbolic debugger.
-qpack_semantic= ibm|gnu The -qpack_semantic option is a portability option that instructs the compiler to use either IBM® or GCC syntax and semantics for the #pragma pack directive.
-qreport When used together with compiler options that enable automatic parallelization or vectorization, the -qreport option produces a pseudo-code listing showing how program loops are parallelized and vectorized. The report also provides diagnostic information if the compiler is not able to parallelize or vectorize a given loop.
-qsaveopt|-qnosaveopt In previous releases, the -qsaveopt option stored the command line options used to compile a file into the resulting object file. In Version 9.0, the information stored in the object file expanded to also include version and level information for each compiler component invoked during compilation.
-qsmp=stackcheck This new -qsmp suboption instructs the compiler to check for stack overflow by slave threads at run time, and issue a warning if the remaining stack size is less than the number of bytes specified by the stackcheck option of the XLSMPOPTS environment variable.
-qtemplatedepth=number -qtemplatedepth specifies the maximum number of recursively-instantiated template specializations that the compiler will process.
-qversion=verbose The -qversion option adds a new verbose suboption. Specifying -qversion=verbose instructs the compiler to display the version and level information for each compiler component invoked during compilation.