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]
Other format: [Raw text]

Re: [patch] for PR 18040


Richard Henderson <rth@redhat.com> writes:

> On Sun, Oct 17, 2004 at 02:04:13PM -0700, Zack Weinberg wrote:
>> What he's saying is that
>> 
>>    <COMPONENT_REF type struct field>
>> 
>> (and all other reference nodes) would implicitly convert FIELD to TYPE,
>> if that's not FIELD's intrinsic type.  I think this makes a hell of a
>> lot of sense, personally.
>
> I think this is an exceptionally bad idea.

Okay.  Can you explain why?  Do you have an alternative suggestion?

Another possibility which has occurred to me, since an awful lot of
the problem has to do with not being able to take apart chains of
*_REFs when the types aren't addressable, is to invent a BIT_ADDR_EXPR
whose purpose is to make them addressable dammit.  With necessary
attendant baggage and stuff.

zw


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