freg-struct-return

Tells the compiler to return struct and union values in registers when possible.

Architecture Restrictions

Only available on IA-32 architecture

Syntax

Linux:

-freg-struct-return

Windows:

None

Arguments

None

Default

OFF

Description

This option tells the compiler to return struct and union values in registers when possible.

Note

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

None