This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about "#pragma pack(n)"


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]