From 9519b2eea05637faa380a68fd679a950176de6db Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 17 Sep 2020 08:06:01 -0600 Subject: [PATCH] Make c-exp.y:name_obstack static c-exp.y:name_obstack is not static, but should be. This patch makes the change. Tested by rebuilding. gdb/ChangeLog 2020-09-17 Tom Tromey * c-exp.y (name_obstack): Now static. --- gdb/ChangeLog | 4 ++++ gdb/c-exp.y | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c6136f6b9f5..f367709de06 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-09-17 Tom Tromey + + * c-exp.y (name_obstack): Now static. + 2020-09-17 Chungyi Chi * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type. diff --git a/gdb/c-exp.y b/gdb/c-exp.y index b03855ba7af..6225217838d 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -3013,7 +3013,7 @@ static int popping; /* Temporary storage for c_lex; this holds symbol names as they are built up. */ -auto_obstack name_obstack; +static auto_obstack name_obstack; /* Classify a NAME token. The contents of the token are in `yylval'. Updates yylval and returns the new token type. BLOCK is the block -- 2.30.2