[Bug rtl-optimization/87485] [9 Regression] Compile time hog w/ -O2 -fschedule-insns -fno-guess-branch-probability -fno-isolate-erroneous-paths-dereference -fno-omit-frame-pointer -fno-split-wide-types -fno-tree-ccp -fno-tree-sra

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 20 16:45:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87485

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Uroš Bizjak from comment #12)
> (In reply to Jakub Jelinek from comment #10)
> > and r264676 fixed that ICE, but hangs on it.
> Are you sure you have correct revision here? Mentioned revision removes FPSR
> x87 status register, which x86_64 should not use at all. The description
> mentions r264726 that mentions many changes in ira-lives.c and lra-lives.c

Yes.

$ timeout 10s ./cc1.264675 -quiet -O2 -fschedule-insns
-fno-guess-branch-probability -fno-isolate-erroneous-paths-dereference
-fno-omit-frame-pointer -fno-split-wide-types -fno-tree-ccp -fno-tree-sra
-fstack-protector-strong pr87485.c; echo $?
pr87485.c: In function ‘c8’:
pr87485.c:19:23: warning: division by zero [-Wdiv-by-zero]
19 |       *xh += fl < (e4 / 0);
   |                       ^
during RTL pass: reload
pr87485.c:34:1: internal compiler error: Maximum number of LRA assignment
passes is achieved (30)

34 | }
   | ^
0xe30a28 lra_assign(bool&)
        ../../gcc/lra-assigns.c:1669
0xe2844b lra(_IO_FILE*)
        ../../gcc/lra.c:2508
0xdbcf3b do_reload
        ../../gcc/ira.c:5469
0xdbd42e execute
        ../../gcc/ira.c:5653
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.
4
$ timeout 10s ./cc1.264676 -quiet -O2 -fschedule-insns
-fno-guess-branch-probability -fno-isolate-erroneous-paths-dereference
-fno-omit-frame-pointer -fno-split-wide-types -fno-tree-ccp -fno-tree-sra
-fstack-protector-strong pr87485.c; echo $?
pr87485.c: In function ‘c8’:
pr87485.c:19:23: warning: division by zero [-Wdiv-by-zero]
19 |       *xh += fl < (e4 / 0);
   |                       ^
124
$ ls -l ./cc1.26467[567]
-rwxrwxr-x. 1 jakub jakub 147562008 Oct  8 08:18 ./cc1.264675
-rwxrwxr-x. 1 jakub jakub 147554608 Oct  8 08:19 ./cc1.264676
-rwxrwxr-x. 1 jakub jakub 147554568 Oct  8 08:21 ./cc1.264677


More information about the Gcc-bugs mailing list