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

            Bug ID: 87117
           Summary: [9 Regression] ICE in
                    eliminate_dom_walker::eliminate_cleanup(bool) at
                    gcc/gcc/tree-ssa-sccvn.c:5431 since r263875
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Following ICEs:

$ ./xgcc -B.
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/maxval_char_2.f90
-fsanitize=undefined -Ofast
during GIMPLE pass: cunrolli
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/maxval_char_2.f90:2:0:

2 | program main
  | 
internal compiler error: Segmentation fault
0xd4866f crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:325
0x7ffff69d810f ???
       
/usr/src/debug/glibc-2.27-6.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0xee53f0 eliminate_dom_walker::eliminate_cleanup(bool)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:5431
0xef575e do_rpo_vn
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:6532
0xef58f7 do_rpo_vn(function*, edge_def*, bitmap_head*)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:6551
0xe7ac48 tree_unroll_loops_completely
        /home/marxin/Programming/gcc/gcc/tree-ssa-loop-ivcanon.c:1479
0xe7ae38 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-loop-ivcanon.c:1655

or a bit different back-trace:

$ ./xgcc -B. /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c -O1
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c: In function ‘f’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c:9:3: warning:
assignment of read-only location ‘"foo"[0]’
9 |   "foo"[0] = 0; /* { dg-warning "assignment of read-only location" } */
  |   ^~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c:10:3: warning:
increment of read-only location ‘"foo"[0]’
10 |   "foo"[0]++; /* { dg-warning "increment of read-only location" } */
   |   ^~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c:11:3: warning:
decrement of read-only location ‘"foo"[0]’
11 |   "foo"[0]--; /* { dg-warning "decrement of read-only location" } */
   |   ^~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c:12:3: warning:
increment of read-only location ‘"foo"[0]’
12 |   ++"foo"[0]; /* { dg-warning "increment of read-only location" } */
   |   ^~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c:13:3: warning:
decrement of read-only location ‘"foo"[0]’
13 |   --"foo"[0]; /* { dg-warning "decrement of read-only location" } */
   |   ^~
during GIMPLE pass: fre
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lvalue-5.c:14:1: internal
compiler error: in vn_reference_insert, at tree-ssa-sccvn.c:2698
14 | }
   | ^
0x6c2e4a vn_reference_insert
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:2698
0xe78f60 visit_reference_op_store
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:4066
0xe78f60 visit_stmt
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:4314
0xe7abcc process_bb
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:5984
0xe7bb02 do_rpo_vn
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:6405
0xe7ca8c execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:6597

Reply via email to