This is the mail archive of the gcc@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: [RFH] [tree-ssa] disabling lowering for &a->b causes ICE


On Sun, 2004-02-15 at 18:43, Richard Henderson wrote:
> On Sun, Feb 15, 2004 at 05:00:35PM -0500, Diego Novillo wrote:
> > +  tree sym = get_base_decl (var);
> 
> For what it's worth, I think get_base_decl is misguided.  
> 
> It looks past both COMPONENT_REF and INDIRECT_REF; I can't
> think of many cases at all in which these should be treated
> identically.  I suspect this causes problems, though I don't
> know of anything specific.
> 
We do want to look past COMPONENT_REFs in the case of &a.b.c so that we
mark 'a' addressable.  In this case, we probably want get_base_address
and do nothing when the base address is an INDIRECT_REF.


Diego.


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