diff options
author | DJ Delorie <dj@redhat.com> | 2012-03-08 00:01:31 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2012-03-08 00:01:31 +0000 |
commit | 4e3aa408903f6f4ed9177fff7def91fe6bb8fd2b (patch) | |
tree | ead2bec52218e30195d61099b7b2a9a5c05808e8 | |
parent | af112affbd247c60075de6cc6f755df8d6ff655d (diff) | |
download | gdb-4e3aa408903f6f4ed9177fff7def91fe6bb8fd2b.zip gdb-4e3aa408903f6f4ed9177fff7def91fe6bb8fd2b.tar.gz gdb-4e3aa408903f6f4ed9177fff7def91fe6bb8fd2b.tar.bz2 |
merge from gcc
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 8 | ||||
-rw-r--r-- | libiberty/testsuite/demangle-expected | 3 |
4 files changed, 21 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index da939f1..e722835 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2009-11-06 Jonas Maebe <jonas.maebe@elis.ugent.be> + + Add DWARF attribute value for the "Borland fastcall" calling + convention. + * elf/dwarf2.h: Add DW_CC_GNU_borland_fastcall_i386 constant. + 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> PR ld/13616 diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5f492cc..97bdfed 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2012-03-07 Jason Merrill <jason@redhat.com> + + * cp-demangle.c (cplus_demangle_operators): Add li. + (d_unqualified_name): Handle it specially. + 2012-01-26 Jakub Jelinek <jakub@redhat.com> * make-relative-prefix.c (make_relative_prefix_1): Avoid warning diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 18b84a1..2b3d182 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -1419,7 +1419,12 @@ d_unqualified_name (struct d_info *di) ret = d_operator_name (di); if (ret != NULL && ret->type == DEMANGLE_COMPONENT_OPERATOR) - di->expansion += sizeof "operator" + ret->u.s_operator.op->len - 2; + { + di->expansion += sizeof "operator" + ret->u.s_operator.op->len - 2; + if (!strcmp (ret->u.s_operator.op->code, "li")) + ret = d_make_comp (di, DEMANGLE_COMPONENT_UNARY, ret, + d_source_name (di)); + } return ret; } else if (peek == 'C' || peek == 'D') @@ -1596,6 +1601,7 @@ const struct demangle_operator_info cplus_demangle_operators[] = { "ix", NL ("[]"), 2 }, { "lS", NL ("<<="), 2 }, { "le", NL ("<="), 2 }, + { "li", NL ("operator\"\" "), 1 }, { "ls", NL ("<<"), 2 }, { "lt", NL ("<"), 2 }, { "mI", NL ("-="), 2 }, diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected index 408c4f4..036c481 100644 --- a/libiberty/testsuite/demangle-expected +++ b/libiberty/testsuite/demangle-expected @@ -4072,6 +4072,9 @@ decltype (g({parm#1}, {})) f1<int>(int) --format=gnu-v3 _Z2f1IiEDTnw_T_ilEES0_ decltype (new int{}) f1<int>(int) +--format=gnu-v3 +_Zli2_wPKc +operator"" _w(char const*) # # Ada (GNAT) tests. # |