f0c53b1
[ Several unnecessary hunks from this patch have been removed. ]
fb633ea
From 96aefb90e843648812d1832789f4a88ea5350605 Mon Sep 17 00:00:00 2001
fb633ea
From: Andreas Schwab <schwab@redhat.com>
fb633ea
Date: Tue, 25 May 2010 15:09:20 +0200
fb633ea
Subject: [PATCH] Avoid strict-aliasing issues
fb633ea
fb633ea
---
fb633ea
 elf/Makefile                           |    1 +
fb633ea
 inet/Makefile                          |    2 ++
fb633ea
 nis/Makefile                           |    2 ++
fb633ea
 nss/Makefile                           |    1 +
fb633ea
 resolv/Makefile                        |    1 +
fb633ea
 sunrpc/Makefile                        |    4 ++++
fb633ea
 sysdeps/powerpc/powerpc64/elf/Makefile |    2 ++
fb633ea
 7 files changed, 13 insertions(+), 0 deletions(-)
a0c4aeb
diff -Nrup a/inet/Makefile b/inet/Makefile
7f32dad
--- a/inet/Makefile	2012-08-29 07:45:37.000000000 -0600
7f32dad
+++ b/inet/Makefile	2012-08-30 09:42:41.981592916 -0600
fb633ea
@@ -54,6 +54,8 @@ tests := htontest test_ifindex tst-ntoa
fb633ea
 
fb633ea
 include ../Rules
fb633ea
 
fb633ea
+CFLAGS-tst-inet6_rth.c += -fno-strict-aliasing
fb633ea
+
fb633ea
 ifeq ($(have-thread-library),yes)
fb633ea
 
7f32dad
 CFLAGS-gethstbyad_r.c = -fexceptions
a0c4aeb
diff -Nrup a/sysdeps/powerpc/powerpc64/Makefile b/sysdeps/powerpc/powerpc64/Makefile
7f32dad
--- a/sysdeps/powerpc/powerpc64/Makefile	2012-08-30 09:42:17.872692135 -0600
7f32dad
+++ b/sysdeps/powerpc/powerpc64/Makefile	2012-08-30 09:42:42.024592741 -0600
a0c4aeb
@@ -37,6 +37,8 @@ CFLAGS-rtld-strnlen.os = $(no-special-re
a0c4aeb
 
a0c4aeb
 CFLAGS-libc-start.c += -fno-asynchronous-unwind-tables
fb633ea
 
fb633ea
+CFLAGS-gmon-start.c += -fno-strict-aliasing
fb633ea
+
fb633ea
 ifeq ($(subdir),csu)
fb633ea
 sysdep_routines += hp-timing
fb633ea
 elide-routines.os += hp-timing