[Bug c/114554] In O2-3 optimization, this code runs in an infinite loop.

2024-04-01 Thread nmodnation at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114554 --- Comment #4 from nmodnation n --- I apologize for taking up your time because of my mistake. I will be careful from next time. thank you 2024년 4월 2일 (화) 오후 3:35, pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org>님이 작성: > https://gcc.gnu

[Bug c/114554] In O2-3 optimization, this code runs in an infinite loop.

2024-04-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114554 --- Comment #3 from Andrew Pinski --- Also didn't you read https://gcc.gnu.org/bugs/ or even what is mentioned on the bug entry web page? https://gcc.gnu.org/bugs/ says: Before reporting that GCC compiles your code incorrectly, compile it with g

[Bug c/114554] In O2-3 optimization, this code runs in an infinite loop.

2024-04-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114554 --- Comment #2 from Andrew Pinski --- Plus I get the following warnings at -O2: In function 'wyrand', inlined from 'main' at :84:5: :76:7: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 76 | *p1 += 325

[Bug c/114554] In O2-3 optimization, this code runs in an infinite loop.

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