aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Yukhin <kirill.yukhin@intel.com>2014-09-24 12:27:30 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2014-09-24 12:27:30 +0000
commit0f549a67813352beb5e621d5da91b1001504c487 (patch)
treee459795292d89db60bc1fde08ddd6f193c219fec
parent8d6b3c1632fcc2be2efbeedc0e6280b0596dd45f (diff)
downloadgcc-0f549a67813352beb5e621d5da91b1001504c487.zip
gcc-0f549a67813352beb5e621d5da91b1001504c487.tar.gz
gcc-0f549a67813352beb5e621d5da91b1001504c487.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/varpool.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ec34528..a14d4f2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 8001c93..3761f14 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;
}