[Mesa-dev] [PATCH] program: Remove _mesa_nop_vertex_program/_mesa_nop_fragment_program.

Eric Anholt eric at anholt.net
Wed Feb 11 11:24:25 PST 2015


Kenneth Graunke <kenneth at whitecape.org> writes:

> On Tuesday, February 10, 2015 08:08:38 PM Matt Turner wrote:
>> Dead since
>> 
>>    commit 284ce20901b0c2cfab1d952cc129b8f3cd068f12
>>    Author: Eric Anholt <eric at 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 <kenneth at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150211/fc2e7017/attachment.sig>


More information about the mesa-dev mailing list