aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-04-16 01:24:08 +0100
committerPedro Alves <palves@redhat.com>2016-04-16 01:24:08 +0100
commit58484447ed8e1c64bbd73f224c8c9452a7420beb (patch)
tree9ff769bdd984cdc70d41d3ce92996cf1052c83a5 /gdb/ada-exp.y
parent0480fa1f33451e60ac7f20c9724660da153b0ed9 (diff)
downloadgdb-58484447ed8e1c64bbd73f224c8c9452a7420beb.zip
gdb-58484447ed8e1c64bbd73f224c8c9452a7420beb.tar.gz
gdb-58484447ed8e1c64bbd73f224c8c9452a7420beb.tar.bz2
gdb/ada-exp.y: Remap yydefred
On: $ uname -a NetBSD gcc70.fsffrance.org 5.1 NetBSD 5.1 (GENERIC) #0: Sat Nov 6 13:19:33 UTC 2010 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/amd64/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64 The link fails with: (...) d-exp.o: In function `parse_number': ../../src/gdb/d-exp.y:762: multiple definition of `yydefred' ada-exp.o:/home/palves/gdb/build/gdb/ada-lex.c:925: first defined here ld: Warning: size of symbol `yydefred' changed from 464 in ada-exp.o to 336 in d-exp.o Makefile:1404: recipe for target 'gdb' failed NetBSD's yacc uses a "yydefred" symbol that we missed renaming in the Ada parser. All other gdb parsers do this already. gdb/ChangeLog: 2016-04-16 Pedro Alves <palves@redhat.com> * ada-exp.y (yydefred): Define as ada_yydefred.
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r--gdb/ada-exp.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 0feb900..a98bdbc 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -93,6 +93,7 @@
#define yytoks ada_toks /* With YYDEBUG defined */
#define yyname ada_name /* With YYDEBUG defined */
#define yyrule ada_rule /* With YYDEBUG defined */
+#define yydefred ada_yydefred
#define yyss ada_yyss
#define yysslim ada_yysslim
#define yyssp ada_yyssp