[Bug c/102711] New: Infinite loop with extern calls removed with -O2 or higher

2021-10-12 Thread andy.koppe at analog dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andy.koppe at analog dot com Target Milestone: --- Created attachment 51591 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51591&action=edit Minimized example Compiling the mi

[Bug c/87123] incorrect optimization involving INT_MIN and conditional operator

2018-08-28 Thread andy.koppe at analog dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87123 --- Comment #6 from Andy Koppe --- Thanks, consider me duly embarrased.

[Bug c/87123] incorrect optimization involving INT_MIN and conditional operator

2018-08-28 Thread andy.koppe at analog dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87123 --- Comment #2 from Andy Koppe --- You are right. The test passes when casting to unsigned before negation.

[Bug c/87123] New: incorrect optimization involving INT_MIN and conditional operator

2018-08-28 Thread andy.koppe at analog dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andy.koppe at analog dot com Target Milestone: --- Reproduced using gcc 5.4.0 on Ubuntu 16.04, gcc 7.3.0 on Cygwin64, and also a gcc 7.2.1 for ARM: $ cat test.c #include int x