Option Type | Default Value | #pragma options | C | C++ |
-qoption | See notes. | - | x | x |
Syntax
-qaggrcopy=overlap | -qaggrcopy=nooverlap
Purpose
Enables destructive copy operations for structures and unions.
Notes
If the -qaggrcopy=nooverlap compiler option is enabled, the compiler
assumes that the source and destination for structure and union assignments do not
overlap. This assumption lets the compiler generate faster code.
Default Setting
The default setting of this option is -qaggrcopy=nooverlap when compiling
to the ANSI, SAA and SAAL2 language levels.
The default setting of this option is -qaggrcopy=overlap when compiling to the EXTENDED and CLASSIC language levels.
Programs that do not comply to the ANSI C standard as it pertains to non-overlap of source and destination assignment may need to be compiled with the -qaggrcopy=overlap compiler option.
Example
xlc myprogram.c -qaggrcopy=nooverlap
List of Compiler Options and Their Defaults
Options that Define the Compiler Object Code Produced
Equivalent Batch Compile-Link and Incremental
Build Options