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: RFA (fold): PATCH for c++/49290 (folding *(T*)(ar+10))


On 06/07/2011 10:05 AM, Richard Guenther wrote:
In that case you could do what Jakub suggested - but only for rvalues
of course.

Right, and I need to handle lvalues as well.


I'm not sure if we already avoid calling the folding where we
require lvalues.

No, we don't.


Can't you instead adjust the type you feed to fold_indirect_ref_1 in
the caller in the C++ FE?

Not without digging down into the operand to see what type it wants. At that point I might as well just copy the whole function into the FE.


Jason


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