aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>1998-09-08 14:33:57 -0400
committerJason Merrill <jason@gcc.gnu.org>1998-09-08 14:33:57 -0400
commitab4856b150b1010b4478ab5c18dc0a32a302263b (patch)
treed637dcc7e2679987ea78b3d4ccb5a84091626f5d /libiberty
parent8f13fd73bbd669ad265214f059deca6758f4dade (diff)
downloadgcc-ab4856b150b1010b4478ab5c18dc0a32a302263b.zip
gcc-ab4856b150b1010b4478ab5c18dc0a32a302263b.tar.gz
gcc-ab4856b150b1010b4478ab5c18dc0a32a302263b.tar.bz2
* cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
From-SVN: r22335
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/cplus-dem.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index e09422e..1805aa3 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+1998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
+
+ * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
+
Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mkstemp.c: Include config.h even when not IN_GCC. Wrap header
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 6b58ae2..ba53bc4 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -1625,6 +1625,14 @@ demangle_arm_pt (work, mangled, n, declp)
--declp->p;
string_append (declp, ">");
}
+ else if (n>10 && strncmp (*mangled, "_GLOBAL_", 8) == 0
+ && (*mangled)[9] == 'N'
+ && (*mangled)[8] == (*mangled)[10]
+ && strchr (cplus_markers, (*mangled)[8]))
+ {
+ /* A member of the anonymous namespace. */
+ string_append (declp, "{anonymous}");
+ }
else
{
string_appendn (declp, *mangled, n);