re PR bootstrap/63235 (building fails with --disable-bootstrap)
authorKirill Yukhin <kirill.yukhin@intel.com>
Wed, 24 Sep 2014 12:27:30 +0000 (12:27 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Wed, 24 Sep 2014 12:27:30 +0000 (12:27 +0000)
PR bootstrap/63235

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

From-SVN: r215552

gcc/ChangeLog
gcc/varpool.c

index ec34528d69587892f3466786858bb0e056336579..a14d4f2d757e6e7c2841c08897aa614cc31699dd 100644 (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
index 8001c93b012f4b1ee9c0f183b893ec021757b9af..3761f142ae7ed5873962944155dbea9ddb2c7e3e 100644 (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;
 }