Kenneth Graunke <kenn...@whitecape.org> writes: > On Tuesday, February 10, 2015 08:08:38 PM Matt Turner wrote: >> Dead since >> >> commit 284ce20901b0c2cfab1d952cc129b8f3cd068f12 >> Author: Eric Anholt <e...@anholt.net> >> Date: Fri Aug 20 10:52:14 2010 -0700 >> >> Remove remnants of the old glsl compiler. >> --- >> src/mesa/program/programopt.c | 91 >> ------------------------------------------- >> src/mesa/program/programopt.h | 6 --- >> 2 files changed, 97 deletions(-) > > LGTM. I wonder if there's a GCC or Clang option to report dead code > like this. 4 years is a long time for this to slip under the radar... > > Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>
Looks like my last adventure in this produced this script: find -iname '*.o' -exec nm -C \{\} \; | grep " [TD] " | awk '{print $3;}' | sort | uniq > symbols.defined find -iname '*.o' -exec nm -C \{\} \; | grep " U " | awk '{print $2;}' | sort | uniq > symbols.used diff -u symbols.defined symbols.used
signature.asc
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev