On 9/27/18 5:13 AM, Bernhard Reutner-Fischer wrote:

> 
> Although not perfect, but may i suggest to consider putting the
> attached contrib/unused_functions.py into our tree?
Do you have commit privileges?  If so, go ahead and add it.

> 
> Just for fun i'm attaching output for fortran, c, cp as per the
> "Examples" comment in the header of the script.
> 
> sample line for cp:
> gcc/cp/cvt.o: Symbol 'cp_get_callee_fndecl(tree_node*)' declared extern but 
> never referenced externally
Seems like it could just go away.  I'd hazard a guess the introduction
of cp_get_callee_fndecl_nofold made cp_get_callee_fndecl unused and it
just wasn't caught at the time.

> 
> sample for c:
> gcc/c/c-decl.o: Symbol 'pending_invalid_xref_location' declared extern but 
> never referenced externally
> gcc/c/c-decl.o: Symbol 'pending_invalid_xref' declared extern but never 
> referenced externally
I think these are used internally within c-decl.c, so I think they just
need their linkage changed to static.

Anyone who wants to tackle those should consider the patch pre-approved.


Jeff

Reply via email to