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: RFC re VIEW_CONVERT_EXPR


Richard Kenner wrote:

That underlying object, if it's really a LHS, will be either an INDIRECT_REF,
a VAR_DECL, or a PARM_DECL. That makes INDIRECT_REF closer to those _DECL
nodes than to a reference.


BTW, some other ILs omit the INDIRECT_REF in lvalue contexts. In particular, all lvalues are represented as addresses, so that "i = 3" would be:

(MODIFY_EXPR (ADDR_EXPR i) (CONST_INT 3))

The point is that you always want the address when you're writing.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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