From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2EFE4BA2E2D; Tue, 7 Jul 2026 19:49:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2EFE4BA2E2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1783453746; bh=4xoJOs+zPaC4eC68Curm8XnDBWpqPCyTB/diKHpYbfY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kQx9YK5caaIyxLlVe3pwFlq9pyXB86ZaJon0Z16fdrXHdG76zXhlTtb0VVGUEj0Bu R4DWbuVmqBCaCuiCEdj0RP/Bre973+NG5iw8oRFOgYW4QPCIuQRoPXVEBi3cWrsZtw dnvU9ShWlb1Rt1FFNn7af2CTyBwYF+h6qTDHqhPQ= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/28444] gdb fails to build on ppc64le when building with -flto Date: Tue, 07 Jul 2026 19:49:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: keiths at redhat dot com 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28444 --- Comment #4 from Sourceware Commits --- The master branch has been updated by Keith Seitz : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd839c0e5ab5a= 1c08d0a110b31f54d17946d4fc8b commit d839c0e5ab5a1c08d0a110b31f54d17946d4fc8b Author: Keith Seitz Date: Tue Jul 7 12:10:08 2026 -0700 regdat.sh: generate const_target_desc_up for register descriptions Late last year, a patch propagated the use of target_desc unique pointers (commit 1a5362ce51ef79ffb61caa20c93284dc368dc74a). At the time, the "old regformats/regdat.sh [weren't] changed because their target_desc objects are statically allocated in the generated files." Unfortunately that re-introduced ODR violations on ppc64le: CXXLD gdbserver ../../src/gdbserver/../gdb/arch/ppc-linux-tdesc.h:46:29: error: =C3=A2tdesc_powerpc_isa207_htm_vsx64l=C3=A2 violates the C++ One Definition= Rule [-Werror=3Dodr] 46 | extern const_target_desc_up tdesc_powerpc_isa207_htm_vsx64l; | ^ powerpc-isa207-htm-vsx64l-generated.cc:26:27: note: =C3=A2tdesc_powerpc_isa207_htm_vsx64l=C3=A2 was previously declared here 26 | const struct target_desc *tdesc_powerpc_isa207_htm_vsx64l; | ^ powerpc-isa207-htm-vsx64l-generated.cc:26:27: note: code may be misoptimized unless =C3=A2-fno-strict-aliasing=C3=A2 is used Update regdat.sh so that generated init_registers_* code matches the const-unique_ptr-based target description API, resolving the ODR violat= ion. A follow-up patch updates various gdbserver architectures to accommodate this API change. Tested on ppc64le and s390x Fedora 43 and mips-linux cross build (all with LTO). Approved-By: Simon Marchi Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28444 --=20 You are receiving this mail because: You are on the CC list for the bug.=