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]
Other format: [Raw text]

Re: PR18173 - can't force alignment of global arrays with static initializer?


On Tue, Nov 23, 2004 at 03:55:18PM -0800, Geoffrey Keating wrote:
> I'm actually not sure why DECL_ALIGN exists, it should really always
> be equal to TYPE_ALIGN.  What you do if you want to change the
> alignment is you create a new type that's the same as the previous one
> but with a different TYPE_ALIGN, and then change the decl's type, and
> then maybe re-layout the decl.

Yes.  Mark and Kenner have argued about this in the past at length.


r~


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