From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5DE3D3858426; Thu, 11 May 2023 21:06:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5DE3D3858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683839206; bh=EHYNSpnFiP7r9o8+7mJktkvW9xBKPbboE/BDB3oii5A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sMMbCs6PJSylR6ypeeOXzwZmdwznvQkpxhLA1ee6IuqzPGhsXPjvfrVaPIQapVTg6 gZyP2MSGcdGXuAH0qec8QcaQpVoeDJ56hIXXq1Il0h+8ngzTLyaw6Z7YhhVGpRlI/q cnTkdzrvT/NRNUZpEsngevEDpkGkj0Rw/Xt+0mtU= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109816] [13/14 Regression] r14-321 fix for PR108969 breaks NVPTX offloading due to __asm (".globl _ZSt21ios_base_library_initv") Date: Thu, 11 May 2023 21:06:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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=3D109816 --- Comment #7 from Jakub Jelinek --- Not --- gcc/lto-cgraph.cc 2023-01-09 13:30:47.105343886 +0100 +++ gcc/lto-cgraph.cc 2023-05-11 23:05:54.266991677 +0200 @@ -1023,7 +1023,8 @@ output_symtab (void) if (!asm_nodes_output) { asm_nodes_output =3D true; - lto_output_toplevel_asms (); + if (!lto_stream_offload_p) + lto_output_toplevel_asms (); } output_refs (encoder); instead? I think that matches conceptually the +#ifndef ACCEL_COMPILER lto_input_toplevel_asms (file_data, file_data->order_base); +#endif change.=