aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-06-09 12:20:27 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-06-09 10:20:27 +0000
commitaf0e142953111be63722a57792805394e5952ec9 (patch)
tree1f897c6187f4f8ee671b8a79c77fbc243b839dfa /gcc/ada/gcc-interface/utils.c
parent842cbb738e7bb5e9b0fde75d7f792f036971d13c (diff)
downloadgcc-af0e142953111be63722a57792805394e5952ec9.zip
gcc-af0e142953111be63722a57792805394e5952ec9.tar.gz
gcc-af0e142953111be63722a57792805394e5952ec9.tar.bz2
utils.c (process_attributes): Use set_decl_section_name accessor.
* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use set_decl_section_name accessor. From-SVN: r211370
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 71761e3..5b32f20 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -2476,9 +2476,9 @@ 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,
- build_string (IDENTIFIER_LENGTH (attr->name),
- IDENTIFIER_POINTER (attr->name)));
+ tree name = build_string (IDENTIFIER_LENGTH (attr->name),
+ IDENTIFIER_POINTER (attr->name));
+ set_decl_section_name (*node, name);
DECL_COMMON (*node) = 0;
}
else