[Bug tree-optimization/108574] wrong code at -Os and above on x86_64-linux-gnu

2023-01-27 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574 --- Comment #2 from Zhendong Su --- Another likely related test case. Compiler Explorer: https://godbolt.org/z/G514hnMeY [537] % gcctk -O3 small.c [538] % timeout -s 9 5 ./a.out Killed [539] % gcctk -O1 small.c [540] % ./a.out [541] % [541]

[Bug tree-optimization/108574] wrong code at -Os and above on x86_64-linux-gnu

2023-01-27 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574 --- Comment #1 from Zhendong Su --- Here is another reproducer likely for the same bug. Compiler Explorer: https://godbolt.org/z/Efvczc6f8 [556] % gcctk -O3 small.c [557] % ./a.out Floating point exception [558] % [558] % cat small.c int a,