diff options
Diffstat (limited to 'arch/i386/Makefile')
-rw-r--r-- | arch/i386/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index d1aca52bf690..f7ac1aea1d8a 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -31,7 +31,7 @@ LDFLAGS_vmlinux := --emit-relocs | |||
31 | endif | 31 | endif |
32 | CHECKFLAGS += -D__i386__ | 32 | CHECKFLAGS += -D__i386__ |
33 | 33 | ||
34 | CFLAGS += -pipe -msoft-float | 34 | CFLAGS += -pipe -msoft-float -mregparm=3 |
35 | 35 | ||
36 | # prevent gcc from keeping the stack 16 byte aligned | 36 | # prevent gcc from keeping the stack 16 byte aligned |
37 | CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) | 37 | CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) |
@@ -39,8 +39,6 @@ CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) | |||
39 | # CPU-specific tuning. Anything which can be shared with UML should go here. | 39 | # CPU-specific tuning. Anything which can be shared with UML should go here. |
40 | include $(srctree)/arch/i386/Makefile.cpu | 40 | include $(srctree)/arch/i386/Makefile.cpu |
41 | 41 | ||
42 | cflags-$(CONFIG_REGPARM) += -mregparm=3 | ||
43 | |||
44 | # temporary until string.h is fixed | 42 | # temporary until string.h is fixed |
45 | cflags-y += -ffreestanding | 43 | cflags-y += -ffreestanding |
46 | 44 | ||