[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-08-21 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 Markus Trippelsdorf changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-08-21 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #10 from Markus Trippelsdorf --- Author: trippels Date: Fri Aug 21 16:44:30 2015 New Revision: 227075 URL: https://gcc.gnu.org/viewcvs?rev=227075&root=gcc&view=rev Log: Fix PR61657 (undefined behavior in loop-iv.c) bootstrap-ubsan s

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-08-21 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #9 from Markus Trippelsdorf --- Patch posted: https://gcc.gnu.org/ml/gcc-patches/2015-08/msg01308.html

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-08-21 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #8 from Vittorio Zecca --- Maybe the easiest way to reproduce the issue is as in the following; gdb ~/local/gcc-5.2.0-sanitized/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/cc1 GNU gdb (GDB) Fedora 7.8.2-39.fc21 Copyright (C) 2014 Free

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-08-21 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-08-21 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #6 from Vittorio Zecca --- A shorter source file displaying the same bug: // from pr42049.c // gcc -funroll-loops -O // ../../gcc-5.2.0/gcc/loop-iv.c:2670:14: runtime error: // signed integer overflow: 7 - -9223372036854775808 canno

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-07-21 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #5 from Vittorio Zecca --- 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 g

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2015-07-21 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #4 from Vittorio Zecca --- I am having the same problem in 5.2.0: /* must be compiled with -O[1] -funroll-loops -foptimize-sibling-calls -finline-small-functions */ /* target x86_64-unknown-linux-gnu */ /* Fedora 21 */ /*gcc-5.2.0/gcc

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2014-09-28 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 Markus Trippelsdorf changed: What|Removed |Added CC||zeccav at gmail dot com --- Commen

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2014-09-28 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 --- Comment #3 from Markus Trippelsdorf --- *** Bug 61944 has been marked as a duplicate of this bug. ***

[Bug rtl-optimization/61657] Undefined behavior in loop-iv.c

2014-09-28 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61657 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Co