[PATCH] add benchmark for strcoll

Florian Weimer fweimer@redhat.com
Mon Mar 9 23:53:00 GMT 2015


On 03/09/2015 06:37 PM, Mike Frysinger wrote:
> On 09 Mar 2015 10:20, Leonhard Holz wrote:
>> --- a/benchtests/bench-strcoll.c +++
>> b/benchtests/bench-strcoll.c
>> 
>> +const char *locales[] = {
> 
> static.

And probably even:

static const char *const locales[] = {

Order of const matters here.  If I recall correctly, GCC will not warn
about duplicate const and create a non-constant silently if you get it
wrong.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list