[Bug rtl-optimization/85789] Signed integer overflow with nonzero optimization in cse.c

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85789

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Andrew Pinski  ---
Dup of bug 85608.

*** This bug has been marked as a duplicate of bug 85608 ***

[Bug rtl-optimization/85789] Signed integer overflow with nonzero optimization in cse.c

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85789

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2021-09-01
 Status|UNCONFIRMED |NEW
   Keywords||ice-on-valid-code,
   ||internal-improvement

[Bug rtl-optimization/85789] Signed integer overflow with nonzero optimization in cse.c

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85789

--- Comment #2 from Vittorio Zecca  ---
Still in trunk:

~/local/gcc-150221-undefined/bin/gcc -S gccerr67.c -O
../../gcc-150221/gcc/cse.c:2204:34: runtime error: signed integer overflow: 1 -
-9223372036854775807 cannot be represented in type 'long int'

[Bug rtl-optimization/85789] Signed integer overflow with nonzero optimization in cse.c

2019-04-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85789

--- Comment #1 from Vittorio Zecca  ---
I confirm it is still in trunk 270309, must be compiled with 
nonzero optimization

~/local/gcc-270309-undefined/bin/gcc -S -O gccerr67.c
../../gcc/gcc/cse.c:2215:34: runtime error: signed integer overflow: 1 -
-9223372036854775807 cannot be represented in type 'long int'

Bug now moved at line 2215

offset = (get_integer_term (x) - get_integer_term (p->exp));