gcc: x86 Variable Attributes

1 
1 6.32.16 x86 Variable Attributes
1 -------------------------------
1 
1 Two attributes are currently defined for x86 configurations: 'ms_struct'
1 and 'gcc_struct'.
1 
1 'ms_struct'
1 'gcc_struct'
1 
1      If 'packed' is used on a structure, or if bit-fields are used, it
1      may be that the Microsoft ABI lays out the structure differently
1      than the way GCC normally does.  Particularly when moving packed
1      data between functions compiled with GCC and the native Microsoft
1      compiler (either via function call or as data in a file), it may be
1      necessary to access either format.
1 
1      The 'ms_struct' and 'gcc_struct' attributes correspond to the
1      '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
1      respectively; see ⇒x86 Options, for details of how structure
1      layout is affected.  ⇒x86 Type Attributes, for information
1      about the corresponding attributes on types.
1