]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Fix an ODR warning with byacc with GDB_YY_REMAP
authorSam James <sam@gentoo.org>
Tue, 12 Sep 2023 00:46:51 +0000 (01:46 +0100)
committerSam James <sam@gentoo.org>
Wed, 27 Sep 2023 07:35:13 +0000 (08:35 +0100)
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

gdb/yy-remap.h

index 33bee0fabdb3df5ad79b8be1f094f59a9290afcf..d0125b9ed45f6814cadd415a5dd257091c3e6f3d 100644 (file)
@@ -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.  */