aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-11-24 03:00:34 +0000
committerDJ Delorie <dj@redhat.com>2004-11-24 03:00:34 +0000
commiteb129e357a5dce022c3e46e3d35d30074774e11c (patch)
treef8ba0757e9286d3c255c975a0d36b799b0647596 /libiberty/cplus-dem.c
parentb34bf369e70b6af445e9f9ba2cbe504cb96cb920 (diff)
downloadgdb-eb129e357a5dce022c3e46e3d35d30074774e11c.zip
gdb-eb129e357a5dce022c3e46e3d35d30074774e11c.tar.gz
gdb-eb129e357a5dce022c3e46e3d35d30074774e11c.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r--libiberty/cplus-dem.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index f3c4464..60a5484 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')
{