This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] add benchmark for strcoll
- From: Marek Polacek <polacek at redhat dot com>
- To: Leonhard Holz <leonhard dot holz at web dot de>
- Cc: libc-alpha at sourceware dot org, vapier at gentoo dot org
- Date: Tue, 10 Mar 2015 13:18:56 +0100
- Subject: Re: [PATCH] add benchmark for strcoll
- Authentication-results: sourceware.org; auth=none
- References: <54FD65DB dot 8050008 at web dot de> <20150309173715 dot GB12857 at vapier> <54FED8DE dot 6030307 at web dot de>
On Tue, Mar 10, 2015 at 12:43:26PM +0100, Leonhard Holz wrote:
> Ok, I changed the code following to your proposals. But one doesnt work:
>
> >
> >>+ timing_t res __attribute__ ((unused));
> >
> >use __attribute_used__ instead
>
> bench-strcoll.c: In function âdo_benchâ:
> bench-strcoll.c:334:3: error: â__used__â attribute ignored [-Werror=attributes]
> timing_t res __attribute_used__;
> ^
used != unused
Marek