diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-10 19:29:06 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-10 19:29:06 +0000 |
commit | 5115732e5b5f4e0ac71e8f697cd6ca14c59071af (patch) | |
tree | 462ee580339879c1136639b49067bcd5ab053cc0 /gdb/c-exp.y | |
parent | 0e29fd4c30c4dfa74b6906da4d3abd7f3960bebd (diff) | |
download | gdb-5115732e5b5f4e0ac71e8f697cd6ca14c59071af.tar.gz |
gdb/
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.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index bdcae3310b5..24a47616e27 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1211,11 +1211,11 @@ const_or_volatile_noopt: const_and_volatile 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 '-' |