Make c-exp.y:name_obstack static
authorTom Tromey <tromey@adacore.com>
Thu, 17 Sep 2020 14:06:01 +0000 (08:06 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 17 Sep 2020 14:06:01 +0000 (08:06 -0600)
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
gdb/c-exp.y

index c6136f6b9f59d4fd796c112604b2a203f9d9b415..f367709de06e996cc6c3d25e265adce06c29fe0b 100644 (file)
@@ -1,3 +1,7 @@
+2020-09-17  Tom Tromey  <tromey@adacore.com>
+
+       * c-exp.y (name_obstack): Now static.
+
 2020-09-17  Chungyi Chi  <demonic@csie.io>
 
        * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
index b03855ba7afa7eb0ac9334b74650b777862051cb..6225217838d829b09136de19a7bfe651e07da5a8 100644 (file)
@@ -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
This page took 0.031484 seconds and 4 git commands to generate.