summary refs log tree commit diff
path: root/sysdeps/ieee754/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-02-26 22:50:54 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-02-26 22:50:54 +0000
commit31331a07a547b89af8b6b659832d7a3c6c6f7b87 (patch)
treee2ab8fbc9339ffe1c5fe489fba3a2308b8a51fb0 /sysdeps/ieee754/Makefile
parent09220e66346dc111ee5b1c5d5bc346f4ca22872e (diff)
downloadglibc-31331a07a547b89af8b6b659832d7a3c6c6f7b87.tar.gz
glibc-31331a07a547b89af8b6b659832d7a3c6c6f7b87.tar.xz
glibc-31331a07a547b89af8b6b659832d7a3c6c6f7b87.zip
Avoid -Wno-write-strings for k_standard.c.
We want to avoid -Wno- options in makefiles as far as possible, by
cleaning up the underlying issues if possible or failing that by using
diagnostic pragmas.  This patch eliminates the use of
-Wno-write-strings for sysdeps/ieee754/k_standard.c by using casts in
the source file to cast away const; those casts are encapsulated in a
macro that also deals with the choice of strings for float / double /
long double functions (for which the logic was previously replicated
many times).

Tested for x86_64; the only change to disassembly of installed
stripped shared libraries was a line number in an assertion.

	* sysdeps/ieee754/k_standard.c (CSTR): New macro.
	(__kernel_standard): Use CSTR macro when setting exc.name.
	* sysdeps/ieee754/Makefile [$(subdir) = math]
	(CFLAGS-k_standard.c): Remove variable.
Diffstat (limited to 'sysdeps/ieee754/Makefile')
-rw-r--r--sysdeps/ieee754/Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/sysdeps/ieee754/Makefile b/sysdeps/ieee754/Makefile
index 1168406c19..5c7fc3fc52 100644
--- a/sysdeps/ieee754/Makefile
+++ b/sysdeps/ieee754/Makefile
@@ -1,5 +1,4 @@
 ifeq ($(subdir),math)
 sysdep_headers += ieee754.h
-CFLAGS-k_standard.c = -Wno-write-strings
 endif