| Summary: | ODR warnings in ada-exp.c.tmp/c-exp.c.tmp | ||
|---|---|---|---|
| Product: | gdb | Reporter: | Sam James <sam> |
| Component: | build | Assignee: | Not yet assigned to anyone <unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | vries |
| Priority: | P2 | ||
| Version: | HEAD | ||
| Target Milestone: | 14.1 | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
| Bug Depends on: | |||
| Bug Blocks: | 22395 | ||
| Attachments: | build.log.xz | ||
|
Description
Sam James
2023-09-11 20:02:50 UTC
Created attachment 15108 [details]
build.log.xz
Does adding a GDB_YY_REMAP line in gdb/yy-remap.h fix it? (In reply to Tom de Vries from comment #2) > Does adding a GDB_YY_REMAP line in gdb/yy-remap.h fix it? Yeah, it does (this is with byacc, btw). ``` diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h index 33bee0fabdb..d0125b9ed45 100644 --- a/gdb/yy-remap.h +++ b/gdb/yy-remap.h @@ -85,6 +85,7 @@ #define yystacksize GDB_YY_REMAP (yystacksize) #define yyvs GDB_YY_REMAP (yyvs) #define yyvsp GDB_YY_REMAP (yyvsp) +#define YYSTACKDATA GDB_YY_REMAP (YYSTACKDATA) /* The following are common to all parsers. */ ``` seems to work? Cool. Then(In reply to Sam James from comment #3) > (In reply to Tom de Vries from comment #2) > > Does adding a GDB_YY_REMAP line in gdb/yy-remap.h fix it? > > Yeah, it does (this is with byacc, btw). > Nice, thanks. I guess you could commit as obvious. > ``` > diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h > index 33bee0fabdb..d0125b9ed45 100644 > --- a/gdb/yy-remap.h > +++ b/gdb/yy-remap.h > @@ -85,6 +85,7 @@ > #define yystacksize GDB_YY_REMAP (yystacksize) > #define yyvs GDB_YY_REMAP (yyvs) > #define yyvsp GDB_YY_REMAP (yyvsp) > +#define YYSTACKDATA GDB_YY_REMAP (YYSTACKDATA) > > /* The following are common to all parsers. */ > > ``` > seems to work? The master branch has been updated by Sam James <sjames@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=df940f8bb348cf90445195ed4a34cddf9af634f6 commit df940f8bb348cf90445195ed4a34cddf9af634f6 Author: Sam James <sam@gentoo.org> Date: Tue Sep 12 01:46:51 2023 +0100 gdb: Fix an ODR warning with byacc with GDB_YY_REMAP With byacc, we get an ODR warning with YYSTACKDATA between ada-exp.c.tmp and c-exp.c.tmp. Just include it in the list of symbols we rename. PR gdb/30839 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30839 Approved-By: Tom de Vries <tdevries@suse.de> Copyright-paperwork-exempt: yes Fixed for 14. |