From d737a254ccb6d41fb45f6d70f8566cd506a74b9e Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Sat, 21 Oct 2006 18:37:01 +0200 Subject: [PATCH] --- yaml --- r: 40127 b: refs/heads/master c: cdfce1f5714fec7b24715f569b2fee1607350a6d h: refs/heads/master i: 40125: b426a006a5f536a8be65e71b785b63ab5ed4d988 40123: f5b0ec450b730e2fea7bc907ab4d373c3cbba193 40119: 0452e606c29bf74f22feba892422fc5365a6e00a 40111: 51d34319d97ec02838f79e77e132c96762bdcecd 40095: bf042a5ce0ae34ab84129d1c3ff337b7d15cfe42 40063: 4997629593cdc535bde1ddea418a6c75197865cf v: v3 --- [refs] | 2 +- trunk/arch/i386/Makefile | 4 ++++ trunk/arch/x86_64/Makefile | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cc58022c6ed6..cd6afc70840c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 73bb8919b33d42cf75a0ed89bc9ca6a7128665be +refs/heads/master: cdfce1f5714fec7b24715f569b2fee1607350a6d diff --git a/trunk/arch/i386/Makefile b/trunk/arch/i386/Makefile index 2d9d756fdd74..0677908dfa06 100644 --- a/trunk/arch/i386/Makefile +++ b/trunk/arch/i386/Makefile @@ -42,6 +42,10 @@ cflags-$(CONFIG_REGPARM) += -mregparm=3 # temporary until string.h is fixed cflags-y += -ffreestanding +# this works around some issues with generating unwind tables in older gccs +# newer gccs do it by default +cflags-y += -maccumulate-outgoing-args + # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use # a lot more stack due to the lack of sharing of stacklots: CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call cc-option,-fno-unit-at-a-time); fi ;) diff --git a/trunk/arch/x86_64/Makefile b/trunk/arch/x86_64/Makefile index 1c0f18d4f887..13972148058d 100644 --- a/trunk/arch/x86_64/Makefile +++ b/trunk/arch/x86_64/Makefile @@ -54,6 +54,10 @@ endif cflags-y += $(call cc-option,-funit-at-a-time) # prevent gcc from generating any FP code by mistake cflags-y += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,) +# this works around some issues with generating unwind tables in older gccs +# newer gccs do it by default +cflags-y += -maccumulate-outgoing-args + # do binutils support CFI? cflags-y += $(call as-instr,.cfi_startproc\n.cfi_endproc,-DCONFIG_AS_CFI=1,) AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_endproc,-DCONFIG_AS_CFI=1,)