Enables destructive copy operations for structures and unions.


Read syntax diagramSkip visual syntax diagram>>- -q--aggrcopy--=--+-nooverlap-+-----------------------------><

Default setting

The default setting of this option is -qaggrcopy=overlap when compiling with -qlanglvl=extended or -qlanglvl=classic in effect. Otherwise, the default is -qaggrcopy=nooverlap.

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.


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.


xlc myprogram.c -qaggrcopy=nooverlap

Related information