From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5BA2D3858C2F; Mon, 1 Jan 2024 20:41:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BA2D3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704141685; bh=PeEs+ZYbJozl9k9+lzGX7e/dhRz+uaCbVypbtrvEZyE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ftDoSPgpqQii4RjvIlflYQYBkC4TNhz7gCUGr5Ou4R+tDTTPpmqgJvj4KvwsIzr5G YNwakHSMPeYZJwAdBx3dF+z190hyG45EqcT9izmkOKecWicPD3y0nfMTKSvvjTJtqM 6x2cHGV2HOSk2DB4h64JeAX/4GiK8Au0LkjjAaUU= From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113182] [14 Regression] FAIL: g++.dg/cpp0x/udlit-namespace.C -std=c++14 execution test Date: Mon, 01 Jan 2024 20:41:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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: 14.0 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=3D113182 --- Comment #5 from John David Anglin --- The problem is TREE_SYMBOL_REFERENCED is not set for libfuncs. This fixes problem on hppa64-hpux: bash-5.1$ git diff gcc/varasm.cc diff --git a/gcc/varasm.cc b/gcc/varasm.cc index 69f8f8ee018..0a1cc022023 100644 --- a/gcc/varasm.cc +++ b/gcc/varasm.cc @@ -2527,9 +2527,7 @@ process_pending_assemble_externals (void) for (rtx list =3D pending_libcall_symbols; list; list =3D XEXP (list, 1)) { rtx symbol =3D XEXP (list, 0); - tree id =3D get_identifier (XSTR (symbol, 0)); - if (TREE_SYMBOL_REFERENCED (id)) - targetm.asm_out.external_libcall (symbol); + targetm.asm_out.external_libcall (symbol); } pending_assemble_externals =3D 0; If you don't care about libfuncs, you could move the TREE_SYMBOL_REFERENCED check into the bpf target.=