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

            Bug ID: 97559
           Summary: ICE at -O1 and above on x86_64-pc-linux-gnu:
                    verify_ssa failed
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

[566] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++
--disable-werror --enable-multilib --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20201024 (experimental) [master revision
d0e2ffcca0e:78f21910dde:a29ff9c53a77b6e208350d8c6db0f3e988f61d1f] (GCC) 
[567] % 
[567] % gcctk -O0 -c small.c
[568] % 
[568] % gcctk -O1 -c small.c
small.c: In function ā€˜eā€™:
small.c:5:6: error: stmt with wrong VUSE
    5 | void e () {
      |      ^
# VUSE <.MEM_8(D)>
f_9 = a;
expected .MEM_5
during GIMPLE pass: sink
small.c:5:6: internal compiler error: verify_ssa failed
0xf6887b verify_ssa(bool, bool)
        ../../gcc-trunk/gcc/tree-ssa.c:1208
0xbf6e07 execute_function_todo
        ../../gcc-trunk/gcc/passes.c:1999
0xbf7bb2 execute_todo
        ../../gcc-trunk/gcc/passes.c:2046
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.
[569] % 
[569] % cat small.c
int printf (char *, ...);

int a, b, c, d;

void e () {
  int f = a;
  if (b) {
  L1:
    b = 0;
  L2:
    if (c) {
      if (f)
        printf("0");
      goto L1;
    }
  }
  if (d)
    goto L2;
}

Reply via email to