From 0d2489f4c1e66601ce5b5373b2e7239a77728940 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 5 Mar 2015 13:54:19 +0000 Subject: [PATCH] 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 --- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-ada-spec.c | 13 ++----------- 2 files changed, 7 insertions(+), 11 deletions(-) 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. */ -- 2.30.2