This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] dwarf.c: Remove two unused global variables
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <binutils at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Thu, 20 Jul 2017 22:06:19 +0200
- Subject: [PATCH] dwarf.c: Remove two unused global variables
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=ericsson.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
last_pointer_size and warned_about_missing_comp_units seem unused, so
remove them.
binutils/ChangeLog:
* dwarf.c (last_pointer_size, warned_about_missing_comp_units):
Remove.
(load_debug_info): Remove assignments to those two variables.
---
binutils/dwarf.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index f6fa157..435a5ff 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -40,9 +40,6 @@ static const char *regname (unsigned int regno, int row);
static int have_frame_base;
static int need_base_address;
-static unsigned int last_pointer_size = 0;
-static int warned_about_missing_comp_units = FALSE;
-
static unsigned int num_debug_info_entries = 0;
static unsigned int alloc_num_debug_info_entries = 0;
static debug_info *debug_information = NULL;
@@ -2920,11 +2917,6 @@ process_debug_info (struct dwarf_section *section,
static unsigned int
load_debug_info (void * file)
{
- /* Reset the last pointer size so that we can issue correct error
- messages if we are displaying the contents of more than one section. */
- last_pointer_size = 0;
- warned_about_missing_comp_units = FALSE;
-
/* If we have already tried and failed to load the .debug_info
section then do not bother to repeat the task. */
if (num_debug_info_entries == DEBUG_INFO_UNAVAILABLE)
--
2.7.4