* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jun 2014 09:52:26 +0000 (09:52 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jun 2014 09:52:26 +0000 (09:52 +0000)
string pointer directly to set_decl_section_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211501 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d6b8646..6e2e8a7 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 bb4d513..201c022 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