This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B19: -fpack-struct dows not work
- To: <gnu-win32 at cygnus dot com>
- Subject: B19: -fpack-struct dows not work
- From: "Sergey Udaltsov" <svu at mcr dot spb dot ru>
- Date: Thu, 2 Jul 1998 14:16:51 +0400
Dear sirs:
We've tryed to compile the following lines using gcc:
struct s
{
char c;
long l;
};
using option -fpack-struct.
sizeof (s) returned 8. Is it right?
When I added __attribute__ ((packed)), sizeof(s) became 5.
So, for now the command-line option does not work the same way as struct
attribute.
Platform: CYGWIN32 B19 / NT4.0
Best regards,
Sergey V. Udaltsov
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".