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

            Bug ID: 113002
           Summary: ICE in commit_one_edge_insertion, at cfgrtl.cc:2095
                    with new -finline-stringops
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mjires at suse dot cz
                CC: aoliva at gcc dot gnu.org
  Target Milestone: ---

Compiling reduced testcase gcc.dg/pr76783.c results in ICE with new
-finline-stringops since its addition r14-5946-g1ff6d9f7428b06.
Happens with riscv64-linux-gnu-gcc and ppc64le-linux-gnu-gcc.


$ cat pr76783.c
typedef __int128 v64u128 __attribute__((vector_size(64)));
int c;
v64u128 u;
void foo() {
  if (c)
    u = (v64u128){0};
  else
    u = (v64u128){1};
}


$ riscv64-linux-gnu-gcc pr76783.c -finline-stringops -Os
during RTL pass: expand
pr76783.c: In function ‘foo’:
pr76783.c:9:1: internal compiler error: in commit_one_edge_insertion, at
cfgrtl.cc:2095
    9 | }
      | ^
0x1286438 commit_one_edge_insertion(edge_def*)
        /home/mjires/git/GCC/master/gcc/cfgrtl.cc:2095
0x12864bf commit_edge_insertions()
        /home/mjires/git/GCC/master/gcc/cfgrtl.cc:2127
0x126337c execute
        /home/mjires/git/GCC/master/gcc/cfgexpand.cc:6926
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-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=riscv64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/home/mjires/built/master/libexec/gcc/riscv64-linux-gnu/14.0.0/lto-wrapper
Target: riscv64-linux-gnu
Configured with: /home/mjires/git/GCC/master/configure
--prefix=/home/mjires/built/master --target=riscv64-linux-gnu
--disable-bootstrap --enable-languages=c,c++ --disable-multilib
--disable-libsanitizer --enable-checking
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231213 (experimental) (GCC)

Reply via email to