public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Quick COND_EXPR question...
@ 2003-04-03 23:25 Chris Lattner
  0 siblings, 0 replies; only message in thread
From: Chris Lattner @ 2003-04-03 23:25 UTC (permalink / raw)
  To: gcc


By the time RTL expansion happens, it appears that lvalue COND_EXPR's have
been re-arranged so that they are no longer lvalues in the tree
representation.  An example of an lvalue COND_EXPR:

int bar(void);
void cond(int c, int *P1, int *P2) {
 (c ? *P1 : *P2) = bar();  // LValue conditional
}

Is this transformation always guaranteed to be performed by the time RTL
expansion is done?

Thanks,

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-03 21:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-03 23:25 Quick COND_EXPR question Chris Lattner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).