This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
struct __attribute((packed));
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: GCC List <gcc at gcc dot gnu dot org>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Fri, 15 Apr 2005 17:07:39 +0200
- Subject: struct __attribute((packed));
Hi,
I just tripped over this snipped below in a piece of code, I didn't
write and which I don't understand:
...
struct somestruct {
struct entrystruct *e1 __attribute__ ((packed));
struct entrystruct *e2 __attribute__ ((packed));
};
...
Is this meaningful?
I guess the author wanted e1 and e2 to point to a
"packed struct entrystruct", but this doesn't seem to be what GCC
interprets this code.
Ralf