------- Comment #8 from rguenther at suse dot de 2010-07-06 12:16 ------- Subject: Re: Mozilla build ICE at Invalid first operand of MEM_REF.
On Tue, 6 Jul 2010, hubicka at ucw dot cz wrote: > > > ------- Comment #7 from hubicka at ucw dot cz 2010-07-06 12:00 ------- > Subject: Re: Mozilla build ICE at Invalid first > operand of MEM_REF. > > > Well, that sounds like caused by your needs_to_live_in_memory change. > > > > There is asymmetry wrt caller / callee and DECL_BY_REFERENCE handling. > > Hmm, what kind of assymetry? Previously we special cased RESULT_DECL so it > was > forced to memory even if it was pointer, no we don't. So things should be more > symemtric? On the caller side the result is typed as TREE_TYPE of the fn prototype, not as type of the callees RESULT_DECL. Thus, for a DELC_BY_REFERENCE RESULT_DECL (which then has reference type) we still see an aggregate on the caller side. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44826