From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 106F13858439; Mon, 14 Aug 2023 20:53:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 106F13858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692046382; bh=tSH8jpij33wTGvV1asWABmuDG/0aMZcZKXA33n1U4z4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NFzIgV7vHwjh3NYsxLWsTkSXlg5JAUJO/FIk14MlDoPYxn8izxtzsXYLvQsOubrtC Jrb8tz3FdYH/LXFgnkYNEqgDEqRbKbuzWTQgqB9wynDkKT24YES1n+ybbMhgVL3DkG /CSWFMPgl55uKXUL67mPaCXsbvc14yrCxF0iKSNM= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/22395] ODR violations Date: Mon, 14 Aug 2023 20:53:01 +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 #19 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=3Dbc6c74b1406c= d9f71b432ac61799c1d1bea60a39 commit bc6c74b1406cd9f71b432ac61799c1d1bea60a39 Author: Tom de Vries Date: Mon Aug 14 22:52:52 2023 +0200 [gdb/build] Fix YYSTYPE and yyalloc odr violation When building gdb with -O2 -flto I run into: ... ada-exp.c.tmp:576:7: error: type =C3=A2union YYSTYPE=C3=A2 violates the= C++ One \ Definition Rule [-Werror=3Dodr] ... Fix this by renaming to ada_exp_YYSTYPE and likewise for other .y files. Likewise for yyalloc. Tested on x86_64-linux. Also tested with byacc rather than bison on suggestion of Tom Tromey. 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.=