[Bug c/112870] incorrect jmp when using goto on a function, causing infinite loop

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112870 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #4 from Andrew Pi

[Bug c/112870] incorrect jmp when using goto on a function, causing infinite loop

2023-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112870 --- Comment #3 from Andrew Pinski --- What you are doing is all not allowed with this extension. Yes the documentation should be a little clearier on this but at least the part where it says: `You may not use this mechanism to jump to code in a

[Bug c/112870] incorrect jmp when using goto on a function, causing infinite loop

2023-12-05 Thread grantrwittmann at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112870 --- Comment #2 from Grant Wittman --- (In reply to Andrew Pinski from comment #1) > This is all undefined behavior. > > > Please read > https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Labels-as-Values.html . > > Specifically: > You may not use

[Bug c/112870] incorrect jmp when using goto on a function, causing infinite loop

2023-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112870 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED