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

            Bug ID: 125609
           Summary: [17 Regression] internal compiler error: in
                    single_pred_edge, at basic-block.h:337 bootstrapping
                    GCC on LoongArch
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at gcc dot gnu.org
  Target Milestone: ---

during RTL pass: fwprop1
../../gcc-upstream/gcc/diagnostics/source-printing.cc: In member function ‘bool
{anonymous}::layout::maybe_add_location_range(const location_range*, unsigned
int, bool)’:
../../gcc-upstream/gcc/diagnostics/source-printing.cc:1914:1: internal compiler
error: in single_pred_edge, at basic-block.h:337
 1914 | }
      | ^
/home/xry111/git-repos/gcc-trunk-build/./prev-gcc/cc1plus -quiet -nostdinc++ -I
/home/xry111/git-repos/gcc-trunk-build/prev-loongarch64-unknown-linux-gnu/libstdc++-v3/include/loongarch64-unknown-linux-gnu
-I
/home/xry111/git-repos/gcc-trunk-build/prev-loongarch64-unknown-linux-gnu/libstdc++-v3/include
-I /home/xry111/git-repos/gcc-upstream/libstdc++-v3/libsupc++ -I . -I
diagnostics -I ../../gcc-upstream/gcc -I ../../gcc-upstream/gcc/diagnostics -I
../../gcc-upstream/gcc/../include -I ../../gcc-upstream/gcc/../libcpp/include
-I ../../gcc-upstream/gcc/../libcody -I ../../gcc-upstream/gcc/../libdecnumber
-I ../../gcc-upstream/gcc/../libdecnumber/dpd -I ../libdecnumber -I
../../gcc-upstream/gcc/../libbacktrace -imultilib . -imultiarch
loongarch64-linux-gnu -iprefix
/home/xry111/git-repos/gcc-trunk-build/prev-gcc/../lib/gcc/loongarch64-unknown-linux-gnu/17.0.0/
-isystem /home/xry111/git-repos/gcc-trunk-build/./prev-gcc/include -isystem
/home/xry111/git-repos/gcc-trunk-build/./prev-gcc/include-fixed -MMD
diagnostics/source-printing.d -MF diagnostics/.deps/source-printing.TPo -MP -MT
diagnostics/source-printing.o -D_GNU_SOURCE -D IN_GCC -D HAVE_CONFIG_H
../../gcc-upstream/gcc/diagnostics/source-printing.cc -quiet -dumpdir
diagnostics/ -dumpbase source-printing.cc -dumpbase-ext .cc -mabi=lp64d
-march=la64v1.0 -mfpu=64 -msimd=lsx -mcmodel=medium -mtune=generic -g -O2
-Wextra -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual -fchecking=1
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fPIE -o /tmp/ccBq6nDt.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

The ICE is reproduced at r17-1350.  r17-1278 was bootstrapped successfully by
my bot: https://gcc.gnu.org/pipermail/gcc-testresults/2026-June/877884.html.

Reply via email to