diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-09 10:20:27 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-09 10:20:27 +0000 |
commit | 39665c6e77d253486ea1f51c0a09ffe49d61a44a (patch) | |
tree | 1f897c6187f4f8ee671b8a79c77fbc243b839dfa /gcc/ada/gcc-interface | |
parent | a7a73438aaab7f80812c0e5b0fc2bebd523c5a7c (diff) | |
download | gcc-39665c6e77d253486ea1f51c0a09ffe49d61a44a.tar.gz |
* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
set_decl_section_name accessor.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gcc-interface')
-rw-r--r-- | gcc/ada/gcc-interface/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 71761e3515f..5b32f208e72 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 |