diff mbox

[bootstrap,PR63235] Fix bootstrap.

Message ID 20140924121648.GC18703@msticlxl57.ims.intel.com
State New
Headers show

Commit Message

Kirill Yukhin Sept. 24, 2014, 12:16 p.m. UTC
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

Comments

Jakub Jelinek Sept. 24, 2014, 12:23 p.m. UTC | #1
On Wed, Sep 24, 2014 at 04:16:50PM +0400, Kirill Yukhin wrote:
> 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?

Ok, thanks.

> 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;
>  }

	Jakub
diff mbox

Patch

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;
 }