https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96015
--- Comment #3 from Sergei Trofimovich ---
Reproducible on both qemu-hppa and on real "PA8600 (PCX-W+) 9000/785/C3600"
machine.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96015
--- Comment #2 from Sergei Trofimovich ---
Happens both on gcc-10.1.0 and gcc from main development branch. Here is the
example of -O1/-O2 difference:
$ hppa2.0-unknown-linux-gnu-gcc -lm -Wsign-compare -Wall -fno-PIE -no-pie
-fno-stack-protector
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96015
--- Comment #1 from Sergei Trofimovich ---
Created attachment 48814
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48814&action=edit
bug_test.c
Selfcontained example.