This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pragma pack() in arm-elf-gcc 3.2.1


Hi Aaron,

The #pragma directive you described is compiler-specific, and not part of GCC.

GCC supports these #pragma directives:
#pragma GCC poison identifier(s)
  identifier(s) is one-or-more identifiers that have been marked for removal
#pragma GCC dependency "file" error message text
  file is the file that must be older (by fstat) than this source file
  error message text is the textual output when the check triggers
#pragma GCC system_header
  consider the rest of the file a system header

No "#pragma pack" nor "#pragma GCC pack" in GCC 3.2.

GCC has the C/C++ language extensions:
    __attribute__((aligned(8)))
    __attribute__((packed))

See <http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/Type-Attributes.html>

HTH,
--Eljay



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]