From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2C433858D1E; Sat, 12 Aug 2023 09:16:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2C433858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691831815; bh=Az/rqHdHk7Web4FEdTAm1yXQqYmbYdshS4HtFIcCZas=; h=From:To:Subject:Date:From; b=xZfuPMtWJkxb/MPMWyn0GpThA8xmb3jiv1EqkFmW490DeQiKrH95umwpIIlCHjTgI IYO09AJkLKCSoJffBijXWy6fFjdu0PvO+DM9Q4pUK3BMwL0dgCpP1mSRAXdprdFqQ8 RyWgf+JaZIAxJdXDFu/KYoHHcVvbY0u4AAWSbjp4= From: "wbx at openadk dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111001] New: SH: ICE during RTL pass: sh_treg_combine2 Date: Sat, 12 Aug 2023 09:16:52 +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: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wbx at openadk dot 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 attachments.created 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=3D111001 Bug ID: 111001 Summary: SH: ICE during RTL pass: sh_treg_combine2 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: wbx at openadk dot org Target Milestone: --- Created attachment 55731 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55731&action=3Dedit preprocessed source code of rw_bitmaps.c Hi, following compile error occurs for Buildroot targeting sh4-linux-gnu for the e2fsprogs package: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc during RTL pass: sh_treg_combine2 rw_bitmaps.c: In function =E2=80=98read_bitmaps_range_start=E2=80=99: rw_bitmaps.c:447:1: internal compiler error: Aborted 447 | } | ^ 0x7fe95c926f8f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7fe95c975ccc __pthread_kill_implementation ./nptl/pthread_kill.c:44 0x7fe95c926ef1 __GI_raise ../sysdeps/posix/raise.c:26 0x7fe95c911471 __GI_abort ./stdlib/abort.c:79 0x7fe95c912189 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7fe95c912244 __libc_start_main_impl ../csu/libc-start.c:381 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. Attached is the preprocessed rw_bitmaps.c file. The problem exist only for -O1/-O2/-O3, using -Os/O0 does not trigger the I= CE. And it is an new issue in gcc 13.2.0, it does not happen for 12.3.0.=20 Do you need more information, do not hesitate to ask. best regards Waldemar=