This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/66166] wrong code at -O1 and above on x86_64-linux-gnu
- From: "miyuki at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 May 2015 23:22:18 +0000
- Subject: [Bug rtl-optimization/66166] wrong code at -O1 and above on x86_64-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-66166-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66166
Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |miyuki at gcc dot gnu.org
--- Comment #2 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
Why should not it abort? Suppose that RHS of the outermost comparison operator
is evaluated first. Then c = 1, e = 0, a = 0, p = 8. In the first iteration of
the loop p is assigned value 0, and b gets the same value. At -O0 LHS is
probably evaluated first (the order of evaluation is unspecified).