This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Updated no_reorder patchkit
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Martin Liška <mliska at suse dot cz>
- Cc: Andi Kleen <andi at firstfloor dot org>, gcc-patches at gcc dot gnu dot org, hubicka at ucw dot cz
- Date: Wed, 24 Sep 2014 16:17:40 +0200
- Subject: Re: Updated no_reorder patchkit
- Authentication-results: sourceware.org; auth=none
- References: <1410837304-13952-1-git-send-email-andi at firstfloor dot org> <5422D24C dot 9070704 at suse dot cz>
> There's missing DECL_ATTRIBUTES in varpool.c in lookup_attribute call.
>
> Ready for trunk?
OK,
thanks
Honza
>
> Martin
> 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;
> }
>