diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:23 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:23 +1100 |
commit | 5c161653db3aa585f3e47a650ae177ba9ffb7232 (patch) | |
tree | 3eed0f4ee3c40748601cf3430f4b590afaef977c /arch/i386/config.mk | |
parent | 8ffb2e8f3365d9b80e8f7e5b7c0130b875e3b899 (diff) | |
download | u-boot-imx-5c161653db3aa585f3e47a650ae177ba9ffb7232.zip u-boot-imx-5c161653db3aa585f3e47a650ae177ba9ffb7232.tar.gz u-boot-imx-5c161653db3aa585f3e47a650ae177ba9ffb7232.tar.bz2 |
x86: Change compiler options
Change to:
- reparam=3
- no-from-pointer
- no-stack-protector
- preferred-stack-boundary=2
- no-top-level-reorder
These options make the code a little smaller and faster
Diffstat (limited to 'arch/i386/config.mk')
-rw-r--r-- | arch/i386/config.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/i386/config.mk b/arch/i386/config.mk index 0e80a1a..8743f1a 100644 --- a/arch/i386/config.mk +++ b/arch/i386/config.mk @@ -25,6 +25,14 @@ CROSS_COMPILE ?= i386-linux- STANDALONE_LOAD_ADDR = 0x40000 +PLATFORM_CPPFLAGS += -fno-strict-aliasing +PLATFORM_CPPFLAGS += -Wstrict-prototypes +PLATFORM_CPPFLAGS += -mregparm=3 +PLATFORM_CPPFLAGS += -fomit-frame-pointer +PLATFORM_CPPFLAGS += $(call cc-option, -ffreestanding) +PLATFORM_CPPFLAGS += $(call cc-option, -fno-toplevel-reorder, $(call cc-option, -fno-unit-at-a-time)) +PLATFORM_CPPFLAGS += $(call cc-option, -fno-stack-protector) +PLATFORM_CPPFLAGS += $(call cc-option, -mpreferred-stack-boundary=2) PLATFORM_CPPFLAGS += -DCONFIG_I386 -D__I386__ LDFLAGS += --cref --gc-sections |