[Bug c/50975] Logical operators evaluated in wrong order if no side effects

2011-11-03 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50975 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/50975] Logical operators evaluated in wrong order if no side effects

2011-11-03 Thread gcc.hall at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50975 --- Comment #2 from Jeremy 2011-11-03 12:37:41 UTC --- (In reply to comment #1) > But ... you can't tell the difference. So this is a valid optimization. You can tell the difference in execution time. And why is this an "optimization"? In thi

[Bug c/50975] Logical operators evaluated in wrong order if no side effects

2011-11-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50975 --- Comment #1 from Richard Guenther 2011-11-03 08:26:33 UTC --- But ... you can't tell the difference. So this is a valid optimization.