From 385e37243a30fe5367e4dbd526301d514dd3c68c Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 3 Feb 2006 13:48:23 +0000 Subject: 2006-02-03 Thomas Schwinge * Makerules.in: Add -fno-strict-aliasing to CFLAGS. * i386/linux/Makefile.in: Likewise for linux-gen-flags. --- ChangeLog | 5 +++++ Makerules.in | 3 +++ i386/linux/Makefile.in | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 234acff..fe3a026 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-03 Thomas Schwinge + + * Makerules.in: Add -fno-strict-aliasing to CFLAGS. + * i386/linux/Makefile.in: Likewise for linux-gen-flags. + 2006-02-02 Sergio Lopez * linux/src/drivers/scsi/eata_pio.c (eata_pio_detect): Fix a diff --git a/Makerules.in b/Makerules.in index 6973a48..864bdf3 100644 --- a/Makerules.in +++ b/Makerules.in @@ -68,6 +68,9 @@ MIGFLAGS += $(CPPFLAGS) CFLAGS += $(CFLAGS-common) +# See . +CFLAGS += -fno-strict-aliasing + LDFLAGS += $(LDFLAGS-common) # Assemble .S files correctly diff --git a/i386/linux/Makefile.in b/i386/linux/Makefile.in index a13a1bb..d998b75 100644 --- a/i386/linux/Makefile.in +++ b/i386/linux/Makefile.in @@ -140,7 +140,7 @@ CPPFLAGS = -Wall # Arrange for special include directories too. # Because of the use of `extern inline' in some Linux header files without # corresponding text-segment definitions, we must always optimize. -linux-gen-flags = -D__KERNEL__ -O2 \ +linux-gen-flags = -D__KERNEL__ -O2 -fno-strict-aliasing \ -Idev/include -I$(srcdir)/dev/include \ -I$(linuxdir)/dev/include -I$(linuxdir)/src/include \ -I$(linuxsrcdir)/dev/include -I$(linuxsrcdir)/src/include -- cgit v1.2.3