]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid strict-aliasing issues
authorAndreas Schwab <schwab@redhat.com>
Tue, 25 May 2010 13:09:20 +0000 (15:09 +0200)
committerAndreas Schwab <schwab@redhat.com>
Tue, 25 May 2010 14:45:48 +0000 (16:45 +0200)
elf/Makefile
inet/Makefile
nis/Makefile
nss/Makefile
resolv/Makefile
sunrpc/Makefile
sysdeps/powerpc/powerpc64/elf/Makefile

index e600cc39827b11d58bdcb57b37df7f8aa4643461..51b1c0f7541c266de3b766e66bd064336b0dc65f 100644 (file)
@@ -129,6 +129,7 @@ include ../Makeconfig
 ifeq ($(unwind-find-fde),yes)
 routines += unwind-dw2-fde-glibc
 shared-only-routines += unwind-dw2-fde-glibc
+CFLAGS-unwind-dw2-fde-glibc.c = -fno-strict-aliasing
 endif
 
 before-compile  = $(objpfx)trusted-dirs.h
index 37985940aedabdc57bf9abcb10eb92de0aeab7cc..0b4a35429c0da355338aa36fb55fc705256ad210 100644 (file)
@@ -57,6 +57,8 @@ tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \
 
 include ../Rules
 
+CFLAGS-tst-inet6_rth.c = -fno-strict-aliasing
+
 ifeq ($(have-thread-library),yes)
 
 CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1 -fexceptions
index 8083ee80441c11537a6036d14826a69ab7315317..42f85dd291b070d02ffb20d9e8a9a196df2bee4a 100644 (file)
@@ -69,6 +69,8 @@ libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))
 
 include ../Rules
 
+CFLAGS-nis_findserv.c = -fno-strict-aliasing
+CFLAGS-ypclnt.c = -fno-strict-aliasing
 
 $(objpfx)libnss_compat.so: $(objpfx)libnsl.so$(libnsl.so-version)
 $(objpfx)libnss_nis.so: $(objpfx)libnsl.so$(libnsl.so-version) \
index 670e6b2f16ddc50537812c37cd8e7741c646881e..323b24419eda8ea98aacdc92d37b44addc65f61d 100644 (file)
@@ -74,6 +74,7 @@ endif
 
 include ../Rules
 
+CFLAGS-files-hosts.c = -fno-strict-aliasing
 
 ifeq (yes,$(build-static-nss))
 $(objpfx)getent: $(objpfx)libnss_files.a
index 42e3505646905e6f88b576b87a8182fbf40dccea..cfac17b474411fa2133086e92dc77f764baed172 100644 (file)
@@ -77,6 +77,7 @@ CPPFLAGS += -Dgethostbyname=res_gethostbyname \
            -Dgetnetbyaddr=res_getnetbyaddr
 
 CFLAGS-res_hconf.c = -fexceptions
+CFLAGS-res_send.c = -fno-strict-aliasing
 
 # The BIND code elicits some harmless warnings.
 +cflags += -Wno-strict-prototypes -Wno-write-strings
index 30f74dc135fb8e87a4158d5dcbe7cd47916f26d8..7eba7b7e850983d546b3689c04d8c019b3656ac6 100644 (file)
@@ -129,6 +129,10 @@ CFLAGS-openchild.c = -fexceptions
 
 CPPFLAGS += -D_RPC_THREAD_SAFE_
 
+CFLAGS-clnt_tcp.c = -fno-strict-aliasing
+CFLAGS-clnt_udp.c = -fno-strict-aliasing
+CFLAGS-clnt_unix.c = -fno-strict-aliasing
+
 include ../Rules
 
 $(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) \
index 6a77e116bd697e54e2596f54be992e827165b946..5ac2c057544f9e2d22cc2b689c816a00a7eeef99 100644 (file)
@@ -9,3 +9,5 @@ CFLAGS-rtld-mempcpy.os = $(no-special-regs)
 CFLAGS-rtld-memmove.os = $(no-special-regs)
 CFLAGS-rtld-memchr.os = $(no-special-regs)
 CFLAGS-rtld-strnlen.os = $(no-special-regs)
+
+CFLAGS-gmon-start.c = -fno-strict-aliasing