+2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix regression after libiberty/ update for GCC PR 6057 and others.
+ * c-exp.y (operator) <OPERATOR DELETE>
+ (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
+ * cp-name-parser.y (fill_comp, make_operator, make_dtor)
+ (make_builtin_type, make_name): New variable i, add gdb_assert.
+ (operator) <OPERATOR NEW>: Update ARGS to 3.
+ (operator) <OPERATOR DELETE>: Add trailing space.
+ (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
+ (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
+ * cp-support.c (cp_canonicalize_string): Check NULL from
+ cp_comp_to_string, call warning and return.
+
2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix duplicate .o files after omitting libbfd.a.
operator: OPERATOR NEW
{ $$ = operator_stoken (" new"); }
| OPERATOR DELETE
- { $$ = operator_stoken (" delete"); }
+ { $$ = operator_stoken (" delete "); }
| OPERATOR NEW '[' ']'
{ $$ = operator_stoken (" new[]"); }
| OPERATOR DELETE '[' ']'
- { $$ = operator_stoken (" delete[]"); }
+ { $$ = operator_stoken (" delete[] "); }
| OPERATOR '+'
{ $$ = operator_stoken ("+"); }
| OPERATOR '-'
struct demangle_component *rhs)
{
struct demangle_component *ret = d_grab ();
- cplus_demangle_fill_component (ret, d_type, lhs, rhs);
+ int i;
+
+ i = cplus_demangle_fill_component (ret, d_type, lhs, rhs);
+ gdb_assert (i);
+
return ret;
}
make_operator (const char *name, int args)
{
struct demangle_component *ret = d_grab ();
- cplus_demangle_fill_operator (ret, name, args);
+ int i;
+
+ i = cplus_demangle_fill_operator (ret, name, args);
+ gdb_assert (i);
+
return ret;
}
make_dtor (enum gnu_v3_dtor_kinds kind, struct demangle_component *name)
{
struct demangle_component *ret = d_grab ();
- cplus_demangle_fill_dtor (ret, kind, name);
+ int i;
+
+ i = cplus_demangle_fill_dtor (ret, kind, name);
+ gdb_assert (i);
+
return ret;
}
make_builtin_type (const char *name)
{
struct demangle_component *ret = d_grab ();
- cplus_demangle_fill_builtin_type (ret, name);
+ int i;
+
+ i = cplus_demangle_fill_builtin_type (ret, name);
+ gdb_assert (i);
+
return ret;
}
make_name (const char *name, int len)
{
struct demangle_component *ret = d_grab ();
- cplus_demangle_fill_name (ret, name, len);
+ int i;
+
+ i = cplus_demangle_fill_name (ret, name, len);
+ gdb_assert (i);
+
return ret;
}
;
operator : OPERATOR NEW
- { $$ = make_operator ("new", 1); }
+ { $$ = make_operator ("new", 3); }
| OPERATOR DELETE
- { $$ = make_operator ("delete", 1); }
+ { $$ = make_operator ("delete ", 1); }
| OPERATOR NEW '[' ']'
- { $$ = make_operator ("new[]", 1); }
+ { $$ = make_operator ("new[]", 3); }
| OPERATOR DELETE '[' ']'
- { $$ = make_operator ("delete[]", 1); }
+ { $$ = make_operator ("delete[] ", 1); }
| OPERATOR '+'
{ $$ = make_operator ("+", 2); }
| OPERATOR '-'