This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46680] Suboptimal code generated for bool comparisons
- From: "d.g.gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 27 Nov 2010 05:51:19 +0000
- Subject: [Bug c++/46680] Suboptimal code generated for bool comparisons
- Auto-submitted: auto-generated
- References: <bug-46680-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46680
Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |d.g.gorbachev at gmail dot
| |com
--- Comment #1 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2010-11-27 05:51:15 UTC ---
> Am I missing something?
-O1 / -O2 / -O3 / -Os option.
> but I think this is a strange behavior
> even for non-initialized variables.
http://en.wikipedia.org/wiki/Undefined_behavior