This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66520] bad code generated code for branches with single &
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 14 Jun 2015 10:58:15 +0000
- Subject: [Bug c++/66520] bad code generated code for branches with single &
- Auto-submitted: auto-generated
- References: <bug-66520-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66520
--- Comment #6 from Andreas Schwab <schwab@linux-m68k.org> ---
If a and b are side-effect-free, pure-boolean expressions then `a && b' and `a
& b' are completely equivalent and there is no reason to generate different
code for them.