From c63b5c58331c768c2e5be37b190509cd244652f5 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 20 Nov 2009 12:01:43 +0100 Subject: [PATCH] --- yaml --- r: 173085 b: refs/heads/master c: 746357d6a526d6da9d89a2ec645b28406e959c2e h: refs/heads/master i: 173083: 38c9be047c233c97c37aedf110e6568c1637cd5e v: v3 --- [refs] | 2 +- trunk/arch/x86/Makefile_32.cpu | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cc5f7df9b576..890759ad5a6d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 303fc0870f8fbfabe260c5c32b18e53458d597ea +refs/heads/master: 746357d6a526d6da9d89a2ec645b28406e959c2e diff --git a/trunk/arch/x86/Makefile_32.cpu b/trunk/arch/x86/Makefile_32.cpu index 30e9a264f69d..df7fdf811997 100644 --- a/trunk/arch/x86/Makefile_32.cpu +++ b/trunk/arch/x86/Makefile_32.cpu @@ -46,6 +46,12 @@ cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx # cpu entries cflags-$(CONFIG_X86_GENERIC) += $(call tune,generic,$(call tune,i686)) +# Work around the pentium-mmx code generator madness of gcc4.4.x which +# does stack alignment by generating horrible code _before_ the mcount +# prologue (push %ebp, mov %esp, %ebp) which breaks the function graph +# tracer assumptions +cflags-$(CONFIG_FUNCTION_GRAPH_TRACER) += $(call cc-option,-mtune=generic) + # Bug fix for binutils: this option is required in order to keep # binutils from generating NOPL instructions against our will. ifneq ($(CONFIG_X86_P6_NOP),y)