This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: type attributes influence other types
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: Re: PATCH: type attributes influence other types
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 7 Sep 1999 17:03:07 -0000
- CC: gcc-patches at gcc dot gnu dot org
> 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.