From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 218223858281; Mon, 14 Aug 2023 16:32:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 218223858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692030770; bh=e/v2au7sDZGDHeyBQK9fxPT3L5NQK/8wSRoDK3zw4L4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K087SW28p/i7sbUQQcEEXxNztWTcDUf4B4I9W/PYySzxqNA+jG8i7jaop7w7GFS8a C4N8kf/ihidVRL2YR0ddpUGlyWlIe1H8nWacOW2+NxxGYw3IkbBMaCOdM03mwLewNq Rebkj6OewdgCZsiBFQSBs3lxayCLy6VCYjgNwVpI= 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:49 +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 #17 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=3D9972aac27d5d= 664a29abc88acd3a84c1e72064c4 commit 9972aac27d5d664a29abc88acd3a84c1e72064c4 Author: Tom de Vries Date: Mon Aug 14 18:32:29 2023 +0200 [gdb/build] Fix struct token_and_value odr violation When build gdb with -O2 -flto I run into: ... gdb/c-exp.y:3003:8: warning: type 'struct token_and_value' violates the= C++ \ One Definition Rule [-Wodr] struct token_and_value ^ gdb/d-exp.y:1310:8: note: a different type is defined in another translation \ unit struct token_and_value ^ ... Fix this by renaming to c_token_and_value and d_token_and_value. Likewise in gdb/go-exp.y, renaming to go_token_and_value. 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.=