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

            Bug ID: 118171
           Summary: [15 Regression] during GIMPLE pass: pre ICE:
                    verify_gimple failed: non-top-level 'realpart_expr' at
                    -O2
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: riscv64-unknown-linux-gnu

Created attachment 59947
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59947&action=edit
reduced testcase

Compiler output:
$ riscv64-unknown-linux-gnu-gcc -O2 testcase.c 
testcase.c: In function 'foo':
testcase.c:5:1: error: non-top-level 'realpart_expr'
    5 | foo(char *p)
      | ^~~
# VUSE <.MEM_5(D)>
pretmp_8 = VIEW_CONVERT_EXPR<unsigned int>(REALPART_EXPR <MEM <complex float>
[(void *)&f]>);
during GIMPLE pass: pre
testcase.c:5:1: internal compiler error: verify_gimple failed
0x35e6d61 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0x18c565d verify_gimple_in_cfg(function*, bool, bool)
        /repo/gcc-trunk/gcc/tree-cfg.cc:5682
0x171e4c4 execute_function_todo
        /repo/gcc-trunk/gcc/passes.cc:2101
0x171ea3e execute_todo
        /repo/gcc-trunk/gcc/passes.cc:2155
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.

$ riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20241221205213-r15-6409-g7d83a32aacd600-checking-yes-rtl-df-extra-riscv64/bin/../libexec/gcc/riscv64-unknown-linux-gnu/15.0.0/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --with-isa-spec=2.2
--with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux-gnu
--with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld
--with-as=/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib
--enable-libsanitizer --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20241221205213-r15-6409-g7d83a32aacd600-checking-yes-rtl-df-extra-riscv64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20241221 (experimental) (GCC)

Reply via email to