This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: fix build errors with -DNDEBUG
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>, Martin Sebor <msebor at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 20 Jul 2015 08:59:05 -0400
- Subject: Re: fix build errors with -DNDEBUG
- Authentication-results: sourceware.org; auth=none
- References: <55A83361 dot 6010506 at gmail dot com> <20150717020539 dot GF5641 at vapier> <87pp3r9lco dot fsf at igel dot home> <20150720072047 dot GO5641 at vapier>
On 07/20/2015 03:20 AM, Mike Frysinger wrote:
> On 17 Jul 2015 11:36, Andreas Schwab wrote:
>> Mike Frysinger <vapier@gentoo.org> writes:
>>> we have __attribute_used__ ...
>>
>> That's actually obsolete now that we require gcc >= 4.6.
>
> right, for internal source files. __attribute_used__ is kept around though for
> public headers since we don't require newer gcc versions to build against glibc.
> which leads to me forgetting and always using the defines both in internal and
> in public code (better than forgetting and never using the defines even in the
> public headers?).
> -mike
Yes it is better :-)
We should make our internal headers cause a warning to be emitted if you use
obsolete attributes given the newly required gcc to build glibc, but we haven't
gotten around to it.
c.