re PR bootstrap/63235 (building fails with --disable-bootstrap)

PR bootstrap/63235

gcc/
	* varpool.c (varpool_node::add): Pass decl attributes
	to lookup_attribute.

From-SVN: r215552
This commit is contained in:
Kirill Yukhin 2014-09-24 12:27:30 +00:00 committed by Kirill Yukhin
parent 8d6b3c1632
commit 0f549a6781
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
PR bootstrap/63235
* varpool.c (varpool_node::add): Pass decl attributes
to lookup_attribute.
2014-09-24 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/63316

View File

@ -449,7 +449,7 @@ varpool_node::add (tree decl)
symtab->call_varpool_insertion_hooks (node);
if (node->externally_visible_p ())
node->externally_visible = true;
if (lookup_attribute ("no_reorder", decl))
if (lookup_attribute ("no_reorder", DECL_ATTRIBUTES (decl)))
node->no_reorder = 1;
}