This is the mail archive of the gcc-patches@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]

Re: (patch) pragma pack lossage




  > My vote to get rid of this code. If anyone thinks this code does the 
  > right thing, I want to know why and definitely want to see some 
  > testcases.
This sound wrong.  The model we generally use is to parse pragmas, then
internally turn them into attributes which are attached to the appropriate
tree node.  It seems to me that removing that code is counter to the way
we want to handle pragmas.

I would rather see us *fix* the code rather than just rip it out.

  > The second bug is simple: pragma pack(<n>) sets the *default* alignment
  > to be <n>, and if we're popping out of the alignment stack, set the
  > alignment to be the default, not to 0.
Please send this as a separate patch.  You should know by now not to include
multiple changes in a single patchfile :-)



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