Re: Avoid optimized out references to appear in lto symbol table

2011-10-05 Thread Jan Hubicka
> Jan Hubicka writes: > > > Hi, > > GNU LD has bug about reporting references to hidden symbol sthat has been > > optimized out. > > This however made me notice that we do output into LTO symbol tables things > > that do > > not belong there. In partiuclar we often output extern inline function

Re: Avoid optimized out references to appear in lto symbol table

2011-10-04 Thread Andi Kleen
Jan Hubicka writes: > Hi, > GNU LD has bug about reporting references to hidden symbol sthat has been > optimized out. > This however made me notice that we do output into LTO symbol tables things > that do > not belong there. In partiuclar we often output extern inline functions that > has be

Re: Avoid optimized out references to appear in lto symbol table

2011-10-04 Thread Jan Hubicka
> 2011/10/2 Jan Hubicka : > >> > Index: tree-sra.c > >> > === > >> > *** tree-sra.c  (revision 179423) > >> > --- tree-sra.c  (working copy) > >> > *** modify_function (struct cgraph_node *nod > >> > *** 4622,4627 > >>

Re: Avoid optimized out references to appear in lto symbol table

2011-10-04 Thread Richard Guenther
2011/10/2 Jan Hubicka : >> > Index: tree-sra.c >> > === >> > *** tree-sra.c  (revision 179423) >> > --- tree-sra.c  (working copy) >> > *** modify_function (struct cgraph_node *nod >> > *** 4622,4627 >> > --- 4622,4628

Re: Avoid optimized out references to appear in lto symbol table

2011-10-02 Thread Jan Hubicka
> > Index: tree-sra.c > > === > > *** tree-sra.c  (revision 179423) > > --- tree-sra.c  (working copy) > > *** modify_function (struct cgraph_node *nod > > *** 4622,4627 > > --- 4622,4628 > >    VEC (cgraph_edge_p

Re: Avoid optimized out references to appear in lto symbol table

2011-10-02 Thread Steven Bosscher
On Sun, Oct 2, 2011 at 4:33 PM, Jan Hubicka wrote: >        * cgraphunit.c (ipa_passes): Remove unrechable nodes. >        * lto-streamer-out.c (produce_symtab): Skip unused extern declarations. >        * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external >        functions are

Avoid optimized out references to appear in lto symbol table

2011-10-02 Thread Jan Hubicka
Hi, GNU LD has bug about reporting references to hidden symbol sthat has been optimized out. This however made me notice that we do output into LTO symbol tables things that do not belong there. In partiuclar we often output extern inline functions that has been fully inlined by early opts. This