From: Eric Botcazou Date: Thu, 5 Mar 2015 13:54:19 +0000 (+0000) Subject: re PR ada/65319 (FAIL: g++.dg/other/dump-ada-spec-3.C -std=gnu++98 (internal compile... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d2489f4c1e66601ce5b5373b2e7239a77728940;p=gcc.git re PR ada/65319 (FAIL: g++.dg/other/dump-ada-spec-3.C -std=gnu++98 (internal compiler error)) PR ada/65319 * c-ada-spec.c (print_destructor): Remove obsolete code. From-SVN: r221213 --- diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index e1d4eff7bdc..07fe10bf139 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2015-03-05 Eric Botcazou + + PR ada/65319 + * c-ada-spec.c (print_destructor): Remove obsolete code. + 2015-03-01 Eric Botcazou * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index fcfefb03f79..2dce3cf0cb8 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -2541,18 +2541,9 @@ static void print_destructor (pretty_printer *buffer, tree t) { tree decl_name = DECL_NAME (DECL_ORIGIN (t)); - const char *s = IDENTIFIER_POINTER (decl_name); - if (*s == '_') - { - for (s += 2; *s != ' '; s++) - pp_character (buffer, *s); - } - else - { - pp_string (buffer, "Delete_"); - pp_ada_tree_identifier (buffer, decl_name, t, false); - } + pp_string (buffer, "Delete_"); + pp_ada_tree_identifier (buffer, decl_name, t, false); } /* Return the name of type T. */