This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81388] Incorrect code generation with -O1 -fno-strict-overflow
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jul 2017 03:13:12 +0000
- Subject: [Bug tree-optimization/81388] Incorrect code generation with -O1 -fno-strict-overflow
- Auto-submitted: auto-generated
- References: <bug-81388-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
void bar();
void foo(char *dst)
{
char *const end = dst;
do {
bar();
dst += 2;
} while (dst < end);
}
Hmm actually I am backwards here. end + 2 < end is always false.