https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110787
Bug ID: 110787 Summary: [14 regression] ICE building SYSTEM.def Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: gaius at gcc dot gnu.org, sayle at gcc dot gnu.org, ubizjak at gmail dot com Target Milestone: --- Target: i386-pc-solaris2.11, i686-pc-linux-gnu, amd64-pc-solaris2.11, x86_64-pc-linux-gnu Between 20230721 and 20230723, Solaris/x86 and Linux/i686 bootstrap broke building SYSTEM.def in stage 2: /bin/ksh /vol/gcc/src/hg/master/local/gcc/m2/tools-src/makeSystem -fpim \ /vol/gcc/src/hg/master/local/gcc/m2/gm2-libs/SYSTEM.def \ /vol/gcc/src/hg/master/local/gcc/m2/gm2-libs/SYSTEM.mod \ -I/vol/gcc/src/hg/master/local/gcc/m2/gm2-libs \ " ./gm2 -B./ -B/vol/gcc/i386-pc-solaris2.11/bin/ -L/var/gcc/regression/master/11.4-gcc/build/gcc/../ld " /var/gcc/regression/master/11.4-gcc/build/gcc/m2/gm2-libs/SYSTEM.def terminate called after throwing an instance of 'unsigned int' during GIMPLE pass: cfg /vol/gcc/src/hg/master/local/gcc/m2/gm2-libs/SYSTEM.mod: In function ‘ShiftVal’: /vol/gcc/src/hg/master/local/gcc/m2/gm2-libs/SYSTEM.mod:77:1: internal compiler error: Abort 77 | BEGIN | ^~~~~ Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. SYSTEM module creates type: LOC SYSTEM module creates type: WORD SYSTEM module creates type: BYTE SYSTEM module creates type: ADDRESS SYSTEM module creates type: INTEGER8 SYSTEM module creates type: INTEGER16 SYSTEM module creates type: INTEGER32 SYSTEM module creates type: INTEGER64 SYSTEM module creates type: CARDINAL8 SYSTEM module creates type: CARDINAL16 SYSTEM module creates type: CARDINAL32 SYSTEM module creates type: CARDINAL64 SYSTEM module creates type: WORD16 SYSTEM module creates type: WORD32 SYSTEM module creates type: WORD64 SYSTEM module creates type: BITSET8 SYSTEM module creates type: BITSET16 SYSTEM module creates type: BITSET32 SYSTEM module creates type: REAL32 SYSTEM module creates type: REAL64 SYSTEM module creates type: REAL128 SYSTEM module creates type: COMPLEX32 SYSTEM module creates type: COMPLEX64 SYSTEM module creates type: COMPLEX128 SYSTEM module creates type: CSIZE_T SYSTEM module creates type: CSSIZE_T terminate called after throwing an instance of 'unsigned int' during GIMPLE pass: cfg /vol/gcc/src/hg/master/local/gcc/m2/gm2-libs/SYSTEM.mod: In function ‘ShiftVal’: /vol/gcc/src/hg/master/local/gcc/m2/gm2-libs/SYSTEM.mod:77:1: internal compiler error: Abort 77 | BEGIN | ^~~~~ A reghunt identified the following patch as the culprit: commit 59c38ddfe052a409a690380d0378169f4a3936ad Author: Roger Sayle <ro...@nextmovesoftware.com> Date: Sat Jul 22 21:50:06 2023 +0100 i386: Use QImode for offsets in zero_extract/sign_extract in i386.md It seems that the same patch also broke configuring 64-bit libphobos in Solaris/amd64 and Linux/x86_64 builds: configure: error: can't compile D sources! configure:5405: /var/gcc/regression/master/11.4-gcc-64/build/./gcc/gdc -B/var/gcc/regression/master/11.4-gcc-64/build/./gcc/ -B/vol/gcc/amd64-pc-solaris2.11/bin/ -B/vol/gcc/amd64-pc-solaris2.11/lib/ -isystem /vol/gcc/amd64-pc-solaris2.11/include -isystem /vol/gcc/amd64-pc-solaris2.11/sys-include -fno-checking -c -fno-druntime -nostdinc -I /vol/gcc/src/hg/master/local/libphobos/libdruntime -g -O2 conftest.d >&5 <built-in>: internal compiler error: Segmentation Fault 0x1a06ffa _D3dmd4root11stringtable__T11StringTableTCQBo10identifier10IdentifierZQBr10allocValueMFNaNbMAxaQCcZk /vol/gcc/src/hg/master/local/gcc/d/dmd/root/stringtable.d:260 0x1a0743f _D3dmd4root11stringtable__T11StringTableTCQBo10identifier10IdentifierZQBr6updateMFNaNbMAxaZPSQDnQDmQDk__T11StringValueTQDaZQs /vol/gcc/src/hg/master/local/gcc/d/dmd/root/stringtable.d:193 0x1a07526 _D3dmd10identifier10Identifier6idPoolFNbAxabZCQBsQBrQBi /vol/gcc/src/hg/master/local/gcc/d/dmd/identifier.d:279 0x1a02264 Id::initialize() /vol/gcc/src/hg/master/local/gcc/d/dmd/id.d-mixin-36:54