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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux