pragma pack() in arm-elf-gcc 3.2.1

Eljay Love-Jensen eljay@adobe.com
Tue Aug 26 12:31:00 GMT 2003


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




More information about the Gcc-help mailing list