summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorppluzhnikov <ppluzhnikov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-12 00:31:18 +0000
committerppluzhnikov <ppluzhnikov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-12 00:31:18 +0000
commit9a00b355730df718506eacaf9dcb582bd632f872 (patch)
treefee65b1f743d8faef3e1d12622eff8714927e8ff /libiberty
parentafeabb6cbbd0d200cdda72405eb030a8a38eb9da (diff)
downloadgcc-9a00b355730df718506eacaf9dcb582bd632f872.tar.gz
2013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
* cp-demangle.c (d_name): Demangle local-source-names. * testsuite/demangle-expected: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203476 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/cp-demangle.c2
-rw-r--r--libiberty/testsuite/demangle-expected3
3 files changed, 9 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 89e108a8da6..c37939ca8ea 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * cp-demangle.c (d_name): Demangle local-source-names.
+ * testsuite/demangle-expected: New test.
+
2013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
PR bootstrap/58386
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index 70f54389c89..03989821b44 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -1276,7 +1276,6 @@ d_name (struct d_info *di)
case 'Z':
return d_local_name (di);
- case 'L':
case 'U':
return d_unqualified_name (di);
@@ -1323,6 +1322,7 @@ d_name (struct d_info *di)
return dc;
}
+ case 'L':
default:
dc = d_unqualified_name (di);
if (d_peek_char (di) == 'I')
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected
index 1259e4a9f49..b0bfcbb6334 100644
--- a/libiberty/testsuite/demangle-expected
+++ b/libiberty/testsuite/demangle-expected
@@ -4291,3 +4291,6 @@ void m<void () &&>(void (A::*)() &&)
--format=gnu-v3
_Z1nIM1AKFvvREEvT_
void n<void (A::*)() const &>(void (A::*)() const &)
+--format=gnu-v3
+_ZL1fIiEvv
+void f<int>()