Fix build failure with macOS bison
authorTom Tromey <tom@tromey.com>
Sun, 6 Jan 2019 16:49:11 +0000 (09:49 -0700)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 8 Jan 2019 17:45:19 +0000 (12:45 -0500)
commitcfeadda545c4961877969e6a66be79278696e012
treea23a098d0b9aa48402b56d60ea2805523f85920b
parent236f4ebe3ac7e8f94184fdcc39c70d74cc62b82a
Fix build failure with macOS bison

PR gdb/24060 points out a compilation failure of the C, Fortran and Pascal
parsers when they are built using the macOS system bison.  The bug is a name
clash between the VARIABLE token name and the VARIABLE enumerator in ui-out.h.

This patch renames VARIABLE in c-exp.y, f-exp.y and p-exp.y to DOLLAR_VARIABLE
to avoid the clash.  It also renames similar variables in other .y files so
that all languages use the same name.

gdb/ChangeLog
2019-01-07  Tom Tromey  <tom@tromey.com>
2019-01-07  Simon Marchi  <simon.marchi@ericsson.com>

PR gdb/24060:
* ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
* ada-lex.l (DOLLAR_VARIABLE): Likewise.
* c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
* f-exp.y (DOLLAR_VARIABLE): Likewise.
* m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
* p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
gdb/ChangeLog
gdb/ada-exp.y
gdb/ada-lex.l
gdb/c-exp.y
gdb/f-exp.y
gdb/m2-exp.y
gdb/p-exp.y
This page took 0.025913 seconds and 4 git commands to generate.