aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
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 /gcc/varpool.c
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
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c2
1 files changed, 1 insertions, 1 deletions
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;
}