summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-26 14:51:01 +0900
committerTom Rini <trini@ti.com>2014-03-04 09:27:40 -0500
commitf694183ba1858ef7dfa4fec195e61aa3afa85f63 (patch)
tree019e44df56bfc4521d71f303efe3c5c469cc20e1
parent9c366881d70ec09ddb8830daaf3f5cd07f9aac15 (diff)
downloadu-boot-imx-f694183ba1858ef7dfa4fec195e61aa3afa85f63.zip
u-boot-imx-f694183ba1858ef7dfa4fec195e61aa3afa85f63.tar.gz
u-boot-imx-f694183ba1858ef7dfa4fec195e61aa3afa85f63.tar.bz2
x86: Delete redundant compiler flags
-Wstrict-prototypes, -ffreestanding, -fno-stack-protector are defined at the top Makefile for all architectures. Do not define them twice for x86. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/x86/config.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/config.mk b/arch/x86/config.mk
index 4a4ad80..58dff14 100644
--- a/arch/x86/config.mk
+++ b/arch/x86/config.mk
@@ -8,13 +8,10 @@
CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
PLATFORM_CPPFLAGS += -fno-strict-aliasing
-PLATFORM_CPPFLAGS += -Wstrict-prototypes
PLATFORM_CPPFLAGS += -mregparm=3
PLATFORM_CPPFLAGS += -fomit-frame-pointer
-PF_CPPFLAGS_X86 := $(call cc-option, -ffreestanding) \
- $(call cc-option, -fno-toplevel-reorder, \
+PF_CPPFLAGS_X86 := $(call cc-option, -fno-toplevel-reorder, \
$(call cc-option, -fno-unit-at-a-time)) \
- $(call cc-option, -fno-stack-protector) \
$(call cc-option, -mpreferred-stack-boundary=2)
PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86)
PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm