aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-04-27 12:59:51 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-04-27 12:59:51 +0000
commit07623417034f67b6785c10a2ccfd64fbb90e9710 (patch)
tree2c8cd2b69b2ac584a8f93e983bb04e92e7e42aff
parent97d6fd65f38691885064d23587deb009009dd909 (diff)
downloadgcc-07623417034f67b6785c10a2ccfd64fbb90e9710.zip
gcc-07623417034f67b6785c10a2ccfd64fbb90e9710.tar.gz
gcc-07623417034f67b6785c10a2ccfd64fbb90e9710.tar.bz2
cplus-dem.c (demangle_qualified): Add a missing else which caused qualified...
cplus-dem.c (demangle_qualified): Add a missing else which caused qualified names with temp,lates to be demangled improperly. From-SVN: r19433
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cplus-dem.c2
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/cplus-dem.c2
4 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 601d8fa..e0fb8af 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
+
+ * cplus-dem.c (demangle_qualified): Replace missing else.
+
Mon Apr 27 20:22:08 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* sh.c (gen_ashift_hi): Don't make SUBREG of a SUBREG.
diff --git a/gcc/cplus-dem.c b/gcc/cplus-dem.c
index 21e3b6e..266a112 100644
--- a/gcc/cplus-dem.c
+++ b/gcc/cplus-dem.c
@@ -2324,7 +2324,7 @@ demangle_qualified (work, mangled, result, isfuncname, append)
success = do_type (work, mangled, &temp);
if (!success) break;
}
- if (*mangled[0] == 'K')
+ else if (*mangled[0] == 'K')
{
int idx;
(*mangled)++;
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 1b98c55..b0d5189 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
+
+ * cplus-dem.c (demangle_qualified): Replace missing else.
+
Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 21e3b6e..266a112 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -2324,7 +2324,7 @@ demangle_qualified (work, mangled, result, isfuncname, append)
success = do_type (work, mangled, &temp);
if (!success) break;
}
- if (*mangled[0] == 'K')
+ else if (*mangled[0] == 'K')
{
int idx;
(*mangled)++;