This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Enable XSI extensions by default
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: newlib at sourceware dot org
- Date: Fri, 25 Aug 2017 14:18:14 -0500
- Subject: Re: [PATCH] Enable XSI extensions by default
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=cygwin.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=yselkowitz at cygwin dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D2ECC37E88
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D2ECC37E88
- References: <20170825052903.3030-1-sebastian.huber@embedded-brains.de>
On 2017-08-25 00:29, Sebastian Huber wrote:
> This test program
>
> #include <strings.h>
>
> int f(int i)
> {
> return ffs(i);
> }
>
> resulted in the follwing GCC warning
>
> warning: implicit declaration of function 'ffs' [-Wimplicit-function-declaration]
Then the guards on ffs need to be fixed to match glibc.
> This is not the case for glibc and FreeBSD. On FreeBSD __XSI_VISBLE is
> by default defined to 700. Do this also on Newlib.
Nak. glibc does *not* enable XSI extensions by default.
--
Yaakov