From 24fc83d6455cef48d0d4f3d4adf2a362a7c45956 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 9 Sep 2008 11:51:30 +0000 Subject: [PATCH] work around for building with gcc4.3 on fedora 9 --- kernel-2.6.spec | 7 +++++++ linux-2.6-001-gcc43.patch | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 linux-2.6-001-gcc43.patch diff --git a/kernel-2.6.spec b/kernel-2.6.spec index c8af8afac..6767543aa 100644 --- a/kernel-2.6.spec +++ b/kernel-2.6.spec @@ -144,6 +144,9 @@ Source30: %{pldistro}-%{kversion}-i686-xenU.config Patch000: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-%{rpmversion}.bz2 %endif +%if "%{distroname}" == "f9" +Patch001: linux-2.6-001-gcc43.patch +%endif Patch010: linux-2.6-010-e1000e.patch Patch020: linux-2.6-020-build-id.patch Patch030: linux-2.6-030-netns.patch @@ -347,6 +350,10 @@ KERNEL_PREVIOUS=vanilla %ApplyPatch 0 %endif +%if "%{distroname}" == "f9" +%ApplyPatch 1 +%endif + %ApplyPatch 10 %ApplyPatch 20 diff --git a/linux-2.6-001-gcc43.patch b/linux-2.6-001-gcc43.patch new file mode 100644 index 000000000..1ff81c549 --- /dev/null +++ b/linux-2.6-001-gcc43.patch @@ -0,0 +1,16 @@ +see http://www.mail-archive.com/devel@lists.laptop.org/msg10626.html +--- a/arch/i386/Makefile 2008-09-09 12:15:51.000000000 +0200 ++++ b/arch/i386/Makefile 2008-09-09 12:16:26.000000000 +0200 +@@ -34,7 +34,11 @@ CHECKFLAGS += -D__i386__ + CFLAGS += -pipe -msoft-float -mregparm=3 -freg-struct-return + + # prevent gcc from keeping the stack 16 byte aligned +-CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) ++#CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) ++CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,) ++ ++CFLAGS += $(call cc-option,-fno-tree-scev-cprop,) ++ + + # CPU-specific tuning. Anything which can be shared with UML should go here. + include $(srctree)/arch/i386/Makefile.cpu -- 2.43.0