From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D62C53857836; Sat, 24 Oct 2020 20:06:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D62C53857836 From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/97565] -flto -ipa-pta ICE: at cgraph_node::get_untransformed_body() Date: Sat, 24 Oct 2020 20:06:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 20:06:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97565 --- Comment #1 from Sergei Trofimovich --- If I change 'abort' name to 'foo' then test works fine: $ cat abort.cpp extern "C" void foo(void) { foo(); } $ cat main.cpp extern "C" void foo(void); int main(int argc, char * argv[]) { foo(); } $ cat o.res 2 main.o 2 203 3cd4d3b7ff8d0f59 PREVAILING_DEF main 206 3cd4d3b7ff8d0f59 RESOLVED_IR foo abort.o 1 191 2179600d205ec4af PREVAILING_DEF_IRONLY foo Looks like 'abort' is considered a builtin of some sort that conflicts with user's override in a way that breaks LTO streaming of type declaration.=