[Mesa-dev] [PATCH 11/13] swr/rast: fixes for 32-bit builds
Emil Velikov
emil.l.velikov at gmail.com
Wed Aug 2 10:07:16 UTC 2017
On 1 August 2017 at 17:36, Rowley, Timothy O <timothy.o.rowley at intel.com> wrote:
>
>> On Jul 31, 2017, at 3:56 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>
>> Hi Tim,
>>
>> Some of the inline functions seem unused.
>> Very quick search showed the following:
>>
>> InterpolateComponent
>> _simd128_abs_ps
>> _simd_abs_ps
>
> The intent of simdlib is a general purpose vector library, so some functions/methods are in there for completeness sake so that when a developer is using it in the future they’re not surprised by obvious holes in the api.
>
>> Might be worth cleaning things up, first?
>
> I’ve been experimenting with —print-gc-sections to see if I can prune used code from the tree, but real unused functions seem to get lost in the inline functions/methods defined in headers which the linker is reaping as expected.
>
Indeed --print-gc-sections does not work with inlines. One needs to
drop the inline keyword - be that sed out, or define it to a noop.
Just an idea for a rainy day.
-Emil
More information about the mesa-dev
mailing list