From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EDF73858400; Fri, 26 Aug 2022 12:38:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EDF73858400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661517490; bh=m2ykYuKLO0rLb++daWkudOkLLWbyc+YBjHyPtjz9ojM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CeSKO6W5BaNaHlEdfvIEDIUXGZ8QB3CKTFnoMFZMKl8iFCNXJnLTuhGQuDeKwYzfA TP8Th41vEgxsipGxhtcjboiu8vClfTiPyV6HTEHJehp5z6c8IL022yZC7M1JJk51/R eOfbpW0TsZj1Im7HfXvpF1hQ9eoasz7cNaM1bxoM= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106751] internal compiler error: in purge_dead_edges, at cfgrtl.cc:3347 Date: Fri, 26 Aug 2022 12:38:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: Message-ID: In-Reply-To: References: 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=3D106751 --- Comment #3 from Martin Li=C5=A1ka --- Reduced to: $ cat rtmutex_api.i struct task_struct *get_current(); struct task_struct { int __state; } __attribute____rt_mutex_slowlock_locked() { asm goto("" : : : : __label_warn_on); __builtin_unreachable(); __label_warn_on: while (1) get_current()->__state =3D 0; } $ ppc64-linux-gnu-gcc rtmutex_api.i -c -O2 during RTL pass: combine rtmutex_api.i: In function =E2=80=98__attribute____rt_mutex_slowlock_locked= =E2=80=99: rtmutex_api.i:10:1: internal compiler error: in purge_dead_edges, at cfgrtl.cc:3347 10 | } | ^ 0x5e35b6 purge_dead_edges(basic_block_def*) =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/c= fgrtl.cc:3347 0x773947 purge_all_dead_edges() =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/c= fgrtl.cc:3368 0x13dc33f combine_instructions =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/c= ombine.cc:1434 0x13dc33f rest_of_handle_combine =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/c= ombine.cc:14978 0x13dc33f execute =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64/build/gcc/c= ombine.cc:15023 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=