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 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.


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