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

            Bug ID: 121999
           Summary: [16 Regression] 453.povray build ICEs since
                    r16-3945-gc30f58c3f7ec25
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pheeck at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
            Blocks: 26163
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

When I try to build 453.povray 2006 SPEC CPU benchmark with -O2 -flto
-fprofile-use (generic march), I get this:

during GIMPLE pass: pre
textstreambuffer.cpp: In member function 'lineflush':
textstreambuffer.cpp:226:6: internal compiler error: in compute_antic, at
tree-ssa-pre.cc:2463
  226 | void TextStreamBuffer::lineflush()
      |      ^
0x23a715d internal_error(char const*, ...)
        /home/fkastl/gcc/src/gcc/diagnostic-global-context.cc:786
0x7cfb5b fancy_abort(char const*, int, char const*)
        /home/fkastl/gcc/src/gcc/diagnostics/context.cc:1786
0x112c908 compute_antic
        /home/fkastl/gcc/src/gcc/tree-ssa-pre.cc:2463
0x112d357 execute
        /home/fkastl/gcc/src/gcc/tree-ssa-pre.cc:4490
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[1]: *** [/tmp/ccqQOmu9.mk:2: /tmp/ccjMYvSV.ltrans0.ltrans.o] Error 1
make[1]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

This bisects to r16-3945-gc30f58c3f7ec25

commit c30f58c3f7ec25a0ecb8d9bd36f8c90270e61993
Author:     Richard Biener <[email protected]>
AuthorDate: Wed Sep 17 12:56:56 2025 +0200
Commit:     Richard Biener <[email protected]>
CommitDate: Thu Sep 18 09:44:15 2025 +0200

    tree-optimization/121720 - missed PRE hoisting


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

Reply via email to