[Bug c++/97697] Segmentation fault on while (true) loop

2020-11-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97697

--- Comment #4 from Jakub Jelinek  ---
I guess an optimization barrier will always work.
E.g. adding
__asm ("" : "+g" (nrn_pass_num));
before the loop.

[Bug c++/97697] Segmentation fault on while (true) loop

2020-11-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97697

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #3 from Richard Biener  ---
Yeah, a reliable workaround is hard.

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

[Bug c++/97697] Segmentation fault on while (true) loop

2020-11-03 Thread marcin.jachu19 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97697

--- Comment #2 from Marcin Jasinski  ---
Is there any workaround possible, before next 9.x release?

[Bug c++/97697] Segmentation fault on while (true) loop

2020-11-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97697

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek  ---
I don't see any difference from this and PR97627.