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
This commit is contained in:
Jan Hubicka 2014-06-09 12:20:27 +02:00 committed by Eric Botcazou
parent 842cbb738e
commit af0e142953
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2014-06-09 Jan Hubicka <hubicka@ucw.cz>
* gcc-interface/utils.c (process_attributes): Use it.
* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
set_decl_section_name accessor.
2014-05-22 Thomas Schwinge <thomas@codesourcery.com>

View File

@ -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