From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D19C3858433; Mon, 14 Aug 2023 16:32:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D19C3858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692030775; bh=DZkjFU+/pEKlMRqLH3aWPI5Rw2DsroWA+xWiz6s5jqk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RmI05NMiTExPlE1tyWtm4ipcUFOzpUb2g69+du7cctU2jsUFGkG/RFNlBAsU2ZOQx tHCoBXdl9QbtaIVW1LbLbXrDXhOcQ8VUvDKC3KOqbmclYnca1DzDfEPE5vn267NS38 GQ9mmm7z2cwHKOaJ2AmxpuuhRS1BJJJtlxL7rtLs= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/22395] ODR violations Date: Mon, 14 Aug 2023 16:32:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D22395 --- Comment #18 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De72b937dddaf= 24d99ec1bf3beda4d8ecf3cd368c commit e72b937dddaf24d99ec1bf3beda4d8ecf3cd368c Author: Tom de Vries Date: Mon Aug 14 18:32:29 2023 +0200 [gdb/build] Fix struct token odr violation When building gdb with -O2 -flto I run into: ... /data/vries/gdb/src/gdb/c-exp.y:2450:8: warning: type 'struct token' \ violates the C++ One Definition Rule [-Wodr] struct token ^ /data/vries/gdb/src/gdb/d-exp.y:939:8: note: a different type is define= d in \ another translation unit struct token ^ ... Fix this by renaming to c_token and d_token. Likewise in: - fortran-exp.y, renaming to f_token, - go-exp.y, renaming to go_token, and - p-exp.y, renaming to p_token. Tested on x86_64-linux. Approved-By: Tom Tromey PR build/22395 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D22395 --=20 You are receiving this mail because: You are on the CC list for the bug.=