This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, bootstrap PR63235] Fix bootstrap.
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: ak at linux dot intel dot com, Zamyatin Igor <igor dot zamyatin at intel dot com>
- Date: Wed, 24 Sep 2014 16:16:50 +0400
- Subject: [PATCH, bootstrap PR63235] Fix bootstrap.
- Authentication-results: sourceware.org; auth=none
Hello,
Patch in the bottom fixes bootstrap
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63235)
gcc/
* varpool.c (varpool_node::add): Pass decl attributes
to lookup_attribute.
Is it ok for trunk?
--
Thanks, K
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;
}