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-Tag: releases/gcc-5.1.0~4459 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f549a67813352beb5e621d5da91b1001504c487;p=thirdparty%2Fgcc.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 ec34528d6958..a14d4f2d757e 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 8001c93b012f..3761f142ae7e 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; }