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: type attributes influence other types


> Date: Tue, 7 Sep 99 12:58:17 EDT
> From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
> 
>     I suppose that we could solve this by ensuring that layout_type() is
>     always called before type_hash_lookup() ?
> 
> Well, if we're going to have type_hash_lookup compare things that are
> set by layout_type, I think we may have to, but it's a larger change
> than for function types because others also do it in the opposite
> order.

Perhaps we could add an attribute to a type's attribute list whenever
__attribute__ ((aligned)) was used.  That way, type_hash_lookup() will
properly distinguish between types with different alignment attributes
and we won't have to change anything else in the compiler.

Would that work?

Andrew.


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