Question about "#pragma pack(n)"

Mike Stump mrs@apple.com
Tue Apr 5 22:21:00 GMT 2005


On Apr 4, 2005, at 11:46 PM, feng qiu wrote:
> -fpack-struct and #pragma pack(2) are contraditctory instructions.

Yup.

> And it seems to be never the intent to allow both.

Seems kinda strong.  I'd argue that #pragma's override what is on the  
command line.  This is I think a change from status quo, but status  
quo is a bug, nothing more.

> Is there a patch for this?

No, not that I know of.

> If I want to modify the gcc source code,what should I do?

contribute a fix.  See the web pages on contributions.



More information about the Gcc mailing list