This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: pragma pack() in arm-elf-gcc 3.2.1
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Aaron Case <aaron dot case at dynazign dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 26 Aug 2003 07:31:31 -0500
- Subject: 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