utils.c (process_attributes): Pass string pointer directly to set_decl_section_name.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 12 Jun 2014 09:52:26 +0000 (11:52 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 12 Jun 2014 09:52:26 +0000 (09:52 +0000)
* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
string pointer directly to set_decl_section_name.

From-SVN: r211501

gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c

index d6b86461567e1fb59e5a75077f056be8ecb8fc75..6e2e8a71fdcf741c580a1c44bf96d787457459cb 100644 (file)
@@ -1,7 +1,7 @@
-2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
+2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
 
-       * gcc-interface/utils.c:  Update handling for section names
-       that are no longer trees.
+       * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
+       string pointer directly to set_decl_section_name.
 
 2014-06-11  Robert Dewar  <dewar@adacore.com>
 
index bb4d513db8c73bed0df31a690ba74bef3db3f1c4..201c022f6c8e0894d80118db8cd4ca00645965d4 100644 (file)
@@ -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