summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-24 02:19:10 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-24 02:19:10 +0000
commit0aef8b79083ee7d478a73beb0869585a8f556da2 (patch)
tree599822dfd05365765ac3cb4d7bec0f4c22a7aeda /libiberty
parentadedc770729c3dbb316232e760943a65ed6f2edb (diff)
downloadgcc-0aef8b79083ee7d478a73beb0869585a8f556da2.tar.gz
PR other/18623
* cp-demangle.c (d_call_offset): Remove useless local variables offset and virtual_offset. * cplus-dem.c (ada_demangle): Remove useless local variable at_start_name. (demangle_template): Remove useless local variable start. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog9
-rw-r--r--libiberty/cp-demangle.c9
-rw-r--r--libiberty/cplus-dem.c8
3 files changed, 13 insertions, 13 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index bddcee9da40..9a2aeda12b0 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,12 @@
+2004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
+
+ PR other/18623
+ * cp-demangle.c (d_call_offset): Remove useless local variables
+ offset and virtual_offset.
+ * cplus-dem.c (ada_demangle): Remove useless local variable
+ at_start_name.
+ (demangle_template): Remove useless local variable start.
+
2004-11-19 Roger Sayle <roger@eyesopen.com>
* objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index 8608bc82507..5707aa20aa2 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -1633,20 +1633,17 @@ d_call_offset (di, c)
struct d_info *di;
int c;
{
- long offset;
- long virtual_offset;
-
if (c == '\0')
c = d_next_char (di);
if (c == 'h')
- offset = d_number (di);
+ d_number (di);
else if (c == 'v')
{
- offset = d_number (di);
+ d_number (di);
if (d_next_char (di) != '_')
return 0;
- virtual_offset = d_number (di);
+ d_number (di);
}
else
return 0;
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index f3c4464f184..60a54844c23 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -976,7 +976,6 @@ ada_demangle (mangled, option)
int len0;
const char* p;
char *demangled = NULL;
- int at_start_name;
int changed;
size_t demangled_size = 0;
@@ -1029,15 +1028,12 @@ ada_demangle (mangled, option)
i += 1, j += 1)
demangled[j] = mangled[i];
- at_start_name = 1;
while (i < len0)
{
- at_start_name = 0;
-
if (i < len0 - 2 && mangled[i] == '_' && mangled[i + 1] == '_')
{
demangled[j] = '.';
- changed = at_start_name = 1;
+ changed = 1;
i += 2; j += 1;
}
else
@@ -2040,14 +2036,12 @@ demangle_template (work, mangled, tname, trawname, is_type, remember)
int r;
int need_comma = 0;
int success = 0;
- const char *start;
int is_java_array = 0;
string temp;
(*mangled)++;
if (is_type)
{
- start = *mangled;
/* get template name */
if (**mangled == 'z')
{