gcc: x86 Type Attributes

1 
1 6.33.7 x86 Type 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 packs them differently than GCC
1      normally packs them.  Particularly when moving packed data between
1      functions compiled with GCC and the native Microsoft compiler
1      (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 Variable Attributes, for
1      information about the corresponding attributes on variables.
1