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]

Re: Test for invalid optimization of ?: lvalue expression


On May 30, 2000, Jason Merrill <jason@cygnus.com> wrote:

> A better solution might be to turn the expression in question into

>   *((I != J) ? &I : &J)

Good idea.  I'll give it a try.

> How does the C frontend deal with using a cond_expr as an lvalue?

Unfortunately, I won't have time to investigate it today, because I'm
leaving for a 10 days trip this afternoon, but I'll investigate it
when I return.

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


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