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: PR 6212


On Tue, May 07, 2002 at 06:20:41PM -0400, Richard Kenner wrote:
> Say you have an object whose type is 1-byte integer
> with a user-specifed alignment of 32 bits.  What do you do?

	new = build_type_copy (char_type_node);
	TYPE_ALIGN (new) = 32;

> If you say that DECL_ALIGN must equal TYPE_ALIGN, you end up constructing
> a record type containing the character as a field and have to deal with
> converting to and from it.

Why are you creating a record type?  Surely that's the pain
you're saying you'll have converting to and from the new type.


r~


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