Commit c93ea196 by Jason Merrill Committed by Jason Merrill

cp-demangle.c (cplus_demangle_operators): Add li.

	* cp-demangle.c (cplus_demangle_operators): Add li.
	(d_unqualified_name): Handle it specially.

From-SVN: r185082
parent bed9e870
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> 2012-01-26 Jakub Jelinek <jakub@redhat.com>
* make-relative-prefix.c (make_relative_prefix_1): Avoid warning * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
......
...@@ -1419,7 +1419,12 @@ d_unqualified_name (struct d_info *di) ...@@ -1419,7 +1419,12 @@ d_unqualified_name (struct d_info *di)
ret = d_operator_name (di); ret = d_operator_name (di);
if (ret != NULL && ret->type == DEMANGLE_COMPONENT_OPERATOR) 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; return ret;
} }
else if (peek == 'C' || peek == 'D') else if (peek == 'C' || peek == 'D')
...@@ -1596,6 +1601,7 @@ const struct demangle_operator_info cplus_demangle_operators[] = ...@@ -1596,6 +1601,7 @@ const struct demangle_operator_info cplus_demangle_operators[] =
{ "ix", NL ("[]"), 2 }, { "ix", NL ("[]"), 2 },
{ "lS", NL ("<<="), 2 }, { "lS", NL ("<<="), 2 },
{ "le", NL ("<="), 2 }, { "le", NL ("<="), 2 },
{ "li", NL ("operator\"\" "), 1 },
{ "ls", NL ("<<"), 2 }, { "ls", NL ("<<"), 2 },
{ "lt", NL ("<"), 2 }, { "lt", NL ("<"), 2 },
{ "mI", NL ("-="), 2 }, { "mI", NL ("-="), 2 },
......
...@@ -4072,6 +4072,9 @@ decltype (g({parm#1}, {})) f1<int>(int) ...@@ -4072,6 +4072,9 @@ decltype (g({parm#1}, {})) f1<int>(int)
--format=gnu-v3 --format=gnu-v3
_Z2f1IiEDTnw_T_ilEES0_ _Z2f1IiEDTnw_T_ilEES0_
decltype (new int{}) f1<int>(int) decltype (new int{}) f1<int>(int)
--format=gnu-v3
_Zli2_wPKc
operator"" _w(char const*)
# #
# Ada (GNAT) tests. # Ada (GNAT) tests.
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment