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:31:49 -0000
- CC: gcc-patches at gcc dot gnu dot org
> Date: Tue, 7 Sep 99 13:28:34 EDT
> From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
>
> 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?
>
> I suppose, but it strikes me as overkill. Why not just change the
> convention and layout the type first?
I have no objection to that, but there are many places where this
would have to be done. Perhaps type_hash_canon() could call
layout_type() if that hadn't previously been done.
Andrew.