From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7DBCC3856DE7; Tue, 6 Jun 2023 16:12:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DBCC3856DE7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686067940; bh=wkvz2JuBVk3IFpH6UY35YJ7URcsMJ6voQOMpUZ1c+CQ=; h=From:To:Subject:Date:From; b=rTWzlCPxtGtGCUcEnQbauBQF4fgDWxrA3NKbUUCRHRmqAl1P/mOGhl5FL+LUt7B7/ GjxFyKO2m2fVHhu7VXQBM5SrnfbEfTCkh3rzwqTYdIIfkY3cLqScEJC6HWJKds2OTv wsLRpw4FYaSkLZHnEAIzrdMspavftpu+5sMRc8zo= From: "dimitar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110144] New: cris-unknown-elf cross build fails with ICE if RTL checking is enabled Date: Tue, 06 Jun 2023 16:12:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: dimitar at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110144 Bug ID: 110144 Summary: cris-unknown-elf cross build fails with ICE if RTL checking is enabled Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dimitar at gcc dot gnu.org Target Milestone: --- I'm trying to cross build the current trunk: $ configure --target=3Dcris-unknown-elf --with-newlib --without-headers --enable-languages=3Dc --disable-nls --disable-libssp --enable-checking=3Dy= es,rtl But the configure stage for libgcc fails with: configure:3814: /home/dinux/projects/pru/local-workspace/cris-gcc-build/./gcc/xgcc -B/home/dinux/projects/pru/local-workspace/cris-gcc-build/./gcc/ -B/usr/local/cris-unknown-elf/bin/ -B/usr/local/cris-unknown-elf/lib/ -isys= tem /usr/local/cris-unknown-elf/include -isystem /usr/local/cris-unknown-elf/sys-include -c -g -O2 conftest.c >&5 during RTL pass: mach2 conftest.c: In function 'main': conftest.c:16:1: internal compiler error: RTL check: expected elt 3 type 'e= ' or 'u', have '0' (rtx note) in PATTERN, at rtl.h:1511 16 | } | ^ 0x6c9a81 rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*) ../../gcc/gcc/rtl.cc:907 0x767bb8 PATTERN(rtx_def*) ../../gcc/gcc/rtl.h:1511 0x768158 PATTERN(rtx_def*) ../../gcc/gcc/rtl.h:1479 0x768158 cris_postdbr_cmpelim ../../gcc/gcc/config/cris/cris.cc:378 0x768158 execute ../../gcc/gcc/config/cris/cris.cc:331 Note that without "--enable-checking=3Dyes,rtl" the cross toolchain compila= tion is successful.=