https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88876
Bug ID: 88876
Summary: [9 regression] ICE in propagate_pure_const
ipa-pure-const.c:1502
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: dimhen at gmail dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
r261210 PASS
r261341 FAIL
r267961 FAIL
$ cat a.i
extern int c();
int a;
int b() {
if (a)
if (c())
return 0;
return 1;
}
#pragma GCC optimize "O0"
int c() {return 0;}
$ /usr/local/gcc_current/bin/gcc -fpreprocessed -O2 -fno-semantic-interposition
-fPIC -DPIC -flto -c a.i -o a.o
$ /usr/local/gcc_current/bin/gcc -fPIC -DPIC -shared -nostdlib -flto a.o
during IPA pass: pure-const
lto1: internal compiler error: Segmentation fault
0xec389f crash_signal
/home/dimhen/src/gcc_current/gcc/toplev.c:326
0x7f57c15535bf ???
/usr/src/debug/glibc-2.28-60-g4d7af7815a/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x184197e propagate_pure_const
/home/dimhen/src/gcc_current/gcc/ipa-pure-const.c:1502
0x184197e execute
/home/dimhen/src/gcc_current/gcc/ipa-pure-const.c:1991
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: /usr/local/gcc_current/bin/gcc returned 1 exit status
compilation terminated.
/usr/local/binutils_current/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status