]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Delete redundant compiler flags
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 26 Feb 2014 05:51:01 +0000 (14:51 +0900)
committerTom Rini <trini@ti.com>
Tue, 4 Mar 2014 14:27:40 +0000 (09:27 -0500)
-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>
arch/x86/config.mk

index 4a4ad8024a324ce38cd2a77a082234cbe741d99f..58dff1467d366200560d5122c3c572a6fe1098a6 100644 (file)
@@ -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