Fix sysdeps/unix/sysv/linux/arm/libc-do-syscall.S warning
Mike Frysinger
vapier@gentoo.org
Mon Mar 2 04:14:00 GMT 2015
On 26 Nov 2014 15:14, Joseph Myers wrote:
> This patch fixes a warning
>
> ../include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
>
> seen when building for ARM. This warning comes from libc-do-syscall.S
> being built for nscd: the nscd build uses _FORTIFY_SOURCE, while .S
> files aren't built with -O, and the combination produces a warning.
> As _FORTIFY_SOURCE doesn't do anything for .S files, undefining it in
> libc-do-syscall.S seems the simplest solution.
should we update features.h to avoid that define when __ASSEMBLER__ is defined ?
seems like this warning can impact external code too.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150302/6a074da3/attachment.sig>
More information about the Libc-alpha
mailing list