From: Sam James Date: Tue, 12 Sep 2023 00:46:51 +0000 (+0100) Subject: gdb: Fix an ODR warning with byacc with GDB_YY_REMAP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df940f8bb348cf90445195ed4a34cddf9af634f6;p=binutils-gdb.git 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 Copyright-paperwork-exempt: yes --- 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. */