[Bug rtl-optimization/103908] gcc 7.5.0 (and earlier) miscompile asm goto in O1 on x86-64

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103908 Jonathan Wakely changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Commen

[Bug rtl-optimization/103908] gcc 7.5.0 (and earlier) miscompile asm goto in O1 on x86-64

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103908 --- Comment #2 from Jonathan Wakely --- The attached testcase is: int a, b; void foo(void) { if (a) { b = 1; asm goto ("call 0x0\n\t" : : : : next1); next1:; } else { b = 1; asm goto ("call 0x1\n\t" : : : : next2); next2:;

[Bug rtl-optimization/103908] gcc 7.5.0 (and earlier) miscompile asm goto in O1 on x86-64

2022-01-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103908 --- Comment #1 from Jonathan Wakely --- Seems to have been fixed by r258645