https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107497
Bug ID: 107497 Summary: [13 regression] ICE during bootstrap after r13-3595-g7b1cdca6d6d594 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:7b1cdca6d6d594a8a9d88062252212e145f2f4eb, r13-3595-g7b1cdca6d6d594 This happens during stage 2 of a bootstrap build. libtool: compile: /home/seurer/gcc/git/build/gcc-trunk-bootstrap/./prev-gcc/xgcc -B/home/seurer/gcc/git/build/gcc-trunk-bootstrap/./prev-gcc/ -B/home/seurer/gcc/git/install/gcc-trunk-bootstrap/powerpc64le-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-trunk-bootstrap/powerpc64le-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-trunk-bootstrap/powerpc64le-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-trunk-bootstrap/powerpc64le-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-trunk-bootstrap/powerpc64le-unknown-linux-gnu/sys-include -fno-checking -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LITTLE_ENDIAN=1 -DHAVE_CLOCK_GETTIME=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRUCT_LCONV_DECIMAL_POINT=1 -DHAVE_STRUCT_LCONV_THOUSANDS_SEP=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UINTPTR_T=1 -DHAVE_VA_COPY=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SIGNAL=1 -DHAVE_SIGACTION=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_INTMAX_MAX=1 -DMPFR_HAVE_NORETURN=1 -DMPFR_HAVE_BUILTIN_UNREACHABLE=1 -DMPFR_HAVE_CONSTRUCTOR_ATTR=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_SUBNORM_DBL=1 -DHAVE_SUBNORM_FLT=1 -DHAVE_SIGNEDZ=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DHAVE_DOUBLE_IEEE_LITTLE_ENDIAN=1 -DHAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE=1 -DMPFR_USE_THREAD_SAFE=1 -DMPFR_USE_C11_THREAD_SAFE=1 -DMPFR_WANT_DECIMAL_FLOATS=1 -DDECIMAL_DPD_FORMAT=1 -DMPFR_WANT_FLOAT128=1 -DMPFR_USE_STATIC_ASSERT=1 -DHAVE_ATTRIBUTE_MODE=1 -DPRINTF_L=1 -DPRINTF_T=1 -DPRINTF_GROUPFLAG=1 -DHAVE___GMPN_SBPI1_DIVAPPR_Q=1 -DMPFR_LONG_WITHIN_LIMB=1 -DMPFR_INTMAX_WITHIN_LIMB=1 -DHAVE_GETRUSAGE=1 -I. -I/home/seurer/gcc/git/gcc-trunk-bootstrap/mpfr/src -I/home/seurer/gcc/git/build/gcc-trunk-bootstrap/gmp -DNO_ASM -g -O2 -fno-checking -gtoggle -MT rec_sqrt.lo -MD -MP -MF .deps/rec_sqrt.Tpo -c /home/seurer/gcc/git/gcc-trunk-bootstrap/mpfr/src/rec_sqrt.c -o rec_sqrt.o during GIMPLE pass: vrp /home/seurer/gcc/git/gcc-trunk-bootstrap/mpfr/src/rec_sqrt.c: In function 'mpfr_mpn_rec_sqrt': /home/seurer/gcc/git/gcc-trunk-bootstrap/mpfr/src/rec_sqrt.c:73:1: internal compiler error: Segmentation fault 73 | mpfr_mpn_rec_sqrt (mpfr_limb_ptr x, mpfr_prec_t p, | ^~~~~~~~~~~~~~~~~ 0x113d0df7 crash_signal /home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/toplev.cc:314 0x106c3994 tree_check(tree_node*, char const*, int, char const*, tree_code) /home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/tree.h:3531 0x11978937 remove_unreachable::remove_and_update_globals(bool) /home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/tree-vrp.cc:183 0x11989d8f execute_ranger_vrp(function*, bool, bool) /home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/tree-vrp.cc:4536 0x1198a2a3 execute /home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/tree-vrp.cc:4619 commit 7b1cdca6d6d594a8a9d88062252212e145f2f4eb (HEAD) Author: Andrew MacLeod <amacl...@redhat.com> Date: Mon Oct 31 15:18:00 2022 -0400 Remove builtin_unreachable in VRP