From: Kirill Yukhin Date: Wed, 24 Sep 2014 12:27:30 +0000 (+0000) Subject: re PR bootstrap/63235 (building fails with --disable-bootstrap) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f549a67813352beb5e621d5da91b1001504c487;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ec34528d695..a14d4f2d757 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-24 Kirill Yukhin + + PR bootstrap/63235 + * varpool.c (varpool_node::add): Pass decl attributes + to lookup_attribute. + 2014-09-24 Jakub Jelinek PR sanitizer/63316 diff --git a/gcc/varpool.c b/gcc/varpool.c index 8001c93b012..3761f142ae7 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -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; }