Message ID | 5422D24C.9070704@suse.cz |
---|---|
State | New |
Headers | show |
> 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; > } >
On Wed, Sep 24, 2014 at 04:16:44PM +0200, Martin Liška wrote: > On 09/16/2014 05:15 AM, Andi Kleen wrote: > >This version addresses earlier comments and has an updated testsuite > >(still no LTO tests however). The assembler statements also > >no stay in order with ordered statements. > > > >It doesn't disable sorting of paritions with ordered symbols. I think > >that's an existing bug and is best addressed separately. > > > >Passed LTO boot strap and test on x86_64-linux, plus build > >of a large project that needs LTO order. > > > >-Andi > > > > Hello. > > I've just merged trunk to my branch and observed regression connected to this patchset: This is already fixed, see r215552. Jakub
On 09/24/2014 04:17 PM, Jan Hubicka wrote: >> There's missing DECL_ATTRIBUTES in varpool.c in lookup_attribute call. >> >> Ready for trunk? > OK, > thanks > Honza Ah, it has been fixed in r215552. Martin >> >> 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; >> } >> >
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; }