This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jul 2015 19:13:17 +0000
- Subject: [Bug rtl-optimization/61657] Undefined behavior in loop-iv.c
- Auto-submitted: auto-generated
- References: <bug-61657-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657
--- Comment #5 from Vittorio Zecca <zeccav at gmail dot com> ---
Just confirmed adding
printf("up=%li down=%li up-down=%li\n", up,down,up-down);
before line 2670.
Output is
up=123 down=-9223372036854775808 up-down=-9223372036854775685
You could probably get an ICE with
gcc_assert(up-down>0);