From: Jan Hubicka Date: Thu, 12 Jun 2014 09:52:26 +0000 (+0200) Subject: utils.c (process_attributes): Pass string pointer directly to set_decl_section_name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ab75824c907413bed9ed7435c7cc9ee392a3101;p=gcc.git utils.c (process_attributes): Pass string pointer directly to set_decl_section_name. * gcc-interface/utils.c (process_attributes) : Pass string pointer directly to set_decl_section_name. From-SVN: r211501 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index d6b86461567..6e2e8a71fdc 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,7 +1,7 @@ -2014-06-11 Jan Hubicka +2014-06-12 Jan Hubicka - * gcc-interface/utils.c: Update handling for section names - that are no longer trees. + * gcc-interface/utils.c (process_attributes) : Pass + string pointer directly to set_decl_section_name. 2014-06-11 Robert Dewar diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index bb4d513db8c..201c022f6c8 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -2476,7 +2476,7 @@ process_attributes (tree *node, struct attrib **attr_list, bool in_place, case ATTR_LINK_SECTION: if (targetm_common.have_named_sections) { - set_decl_section_name (*node, attr->name); + set_decl_section_name (*node, IDENTIFIER_POINTER (attr->name)); DECL_COMMON (*node) = 0; } else