Remove EXTERN from buildsym.h
authorTom Tromey <tom@tromey.com>
Mon, 21 May 2018 15:21:18 +0000 (09:21 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Jul 2018 15:42:49 +0000 (09:42 -0600)
Nothing in buildsym.h relies on the "EXTERN" method of
declaration/definition, so remove the traces.

gdb/ChangeLog
2018-07-20  Tom Tromey  <tom@tromey.com>

* buildsym.h (EXTERN): Don't define or undef.
* buildsym.c (EXTERN): Don't define.

gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h

index 3b8de34b083102da225f87f50439f5d802f8b64c..f695ce26b894f64c22bbeee9447f030e3905566b 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-20  Tom Tromey  <tom@tromey.com>
+
+       * buildsym.h (EXTERN): Don't define or undef.
+       * buildsym.c (EXTERN): Don't define.
+
 2018-07-20  Tom Tromey  <tom@tromey.com>
 
        * buildsym.c: Remove TODO comment.
index e6eb711f4b95316ebf1d2554a873f92e5f861e72..dffd077ed69c0394fee127c0d01f74d254329880 100644 (file)
@@ -62,6 +62,7 @@
 */
 
 #include "defs.h"
+#include "buildsym.h"
 #include "bfd.h"
 #include "gdb_obstack.h"
 #include "symtab.h"
 #include "addrmap.h"
 #include <algorithm>
 
-/* Ask buildsym.h to define the vars it normally declares `extern'.  */
-#define        EXTERN
-/**/
-#include "buildsym.h"          /* Our own declarations.  */
-#undef EXTERN
-
 /* For cleanup_undefined_stabs_types and finish_global_stabs (somewhat
    questionable--see comment where we call them).  */
 
index 9f043141eca226f447f329220b8d3a9715f4f711..220d7f48fe495473c57ddb4ab675ff6a58f4ab64 100644 (file)
@@ -30,22 +30,13 @@ enum language;
    file-reading routines.
 
    They originated in dbxread.c of gdb-4.2, and were split out to
-   make xcoffread.c more maintainable by sharing code.
-
-   Variables declared in this file can be defined by #define-ing the
-   name EXTERN to null.  It is used to declare variables that are
-   normally extern, but which get defined in a single module using
-   this technique.  */
+   make xcoffread.c more maintainable by sharing code.  */
 
 struct block;
 struct pending_block;
 
 struct dynamic_prop;
 
-#ifndef EXTERN
-#define        EXTERN extern
-#endif
-
 /* The list of sub-source-files within the current individual
    compilation.  Each file gets its own symtab with its own linetable
    and associated info, but they all share one blockvector.  */
@@ -271,6 +262,4 @@ extern struct pending **get_file_symbols ();
 
 extern struct pending **get_global_symbols ();
 
-#undef EXTERN
-
 #endif /* defined (BUILDSYM_H) */
This page took 0.031555 seconds and 4 git commands to generate.