summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-08 18:33:57 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-08 18:33:57 +0000
commit7a1ec54fc1664107579587685a068e91d9f6b561 (patch)
treed637dcc7e2679987ea78b3d4ccb5a84091626f5d /libiberty
parent4fe823c26a4d67d39cf69cf278451766125035f5 (diff)
downloadgcc-7a1ec54fc1664107579587685a068e91d9f6b561.tar.gz
* cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22335 138bc75d-0d04-0410-961f-82ee72b054a4
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 e09422e6b42..1805aa35b6a 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 6b58ae25779..ba53bc4c118 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);