* [pushed] Make c-exp.y:name_obstack static
@ 2020-09-17 14:07 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-09-17 14:07 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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 <tromey@adacore.com>
* 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/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.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-17 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 14:07 [pushed] Make c-exp.y:name_obstack static Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).