This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 1/7] ld: Make some variables static
Couple of variables used by the parser can be made static, there should
be no user visible change after this commit.
ld/ChangeLog:
* ldgram.y (ldgram_had_keep): Make static.
(ldgram_vers_current_lang): Likewise.
---
ld/ChangeLog | 5 +++++
ld/ldgram.y | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 4c1efdc2ede..425f1bf2ed3 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -48,8 +48,8 @@
static enum section_type sectype;
static lang_memory_region_type *region;
-bfd_boolean ldgram_had_keep = FALSE;
-char *ldgram_vers_current_lang = NULL;
+static bfd_boolean ldgram_had_keep = FALSE;
+static char *ldgram_vers_current_lang = NULL;
#define ERROR_NAME_MAX 20
static char *error_names[ERROR_NAME_MAX];
--
2.13.3