[Bug target/100049] loop counter double increment with longjmp inside

2021-04-14 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 --- Comment #7 from Christophe Lyon --- I'm told that -fno-sched-interblock helps

[Bug target/100049] loop counter double increment with longjmp inside

2021-04-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2021-04-13 Resolution|INVALID

[Bug target/100049] loop counter double increment with longjmp inside

2021-04-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 --- Comment #5 from Andrew Pinski --- (In reply to Christophe Lyon from comment #4) > Actually 'man longjmp' says: > >The compiler may optimize variables into registers, and longjmp() > may >restore the values of other regist

[Bug target/100049] loop counter double increment with longjmp inside

2021-04-13 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 --- Comment #4 from Christophe Lyon --- Actually 'man longjmp' says: The compiler may optimize variables into registers, and longjmp() may restore the values of other registers in addition to the stack pointer and progra

[Bug target/100049] loop counter double increment with longjmp inside

2021-04-12 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 --- Comment #3 from Christophe Lyon --- Thanks for the prompt answers! I did notice that putting the code into a single source file made behave "as expected". I did check the longjmp docs but unfortunately missed the section describing this cas

[Bug target/100049] loop counter double increment with longjmp inside

2021-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug target/100049] loop counter double increment with longjmp inside

2021-04-12 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100049 Andreas Schwab changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---