config.mk: Remove duplicated -fno-strict-aliasing
authorBin Meng <bmeng.cn@gmail.com>
Mon, 17 Sep 2018 05:35:29 +0000 (22:35 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 26 Sep 2018 01:50:34 +0000 (21:50 -0400)
Now that we already disable the "strict-aliasing" globally, remove
the duplicates in the nds32/riscv/x86 arch-specific Makefiles.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/nds32/config.mk
arch/riscv/config.mk
arch/x86/config.mk

index cb3d8b35b5cf1478a9c7ec7dd935aec8a9290e8f..c5520fd8d83c94aa901dcad9f63a7065d49952be 100644 (file)
@@ -15,7 +15,7 @@ endif
 CONFIG_STANDALONE_LOAD_ADDR = 0x300000 \
                              -T $(srctree)/examples/standalone/nds32.lds
 
-PLATFORM_RELFLAGS      += -fno-strict-aliasing -fno-common -mrelax
+PLATFORM_RELFLAGS      += -fno-common -mrelax
 PLATFORM_RELFLAGS      += -gdwarf-2
 PLATFORM_CPPFLAGS      += -D__nds32__ -G0 -ffixed-10 -fpie
 
index 219e66683d2f7c82c8b5f3ddf19ad5ba264a0fbc..c0b3858edd90e3d89e2ddb0c2d6d5010358df004 100644 (file)
@@ -31,7 +31,7 @@ CONFIG_STANDALONE_LOAD_ADDR = 0x00000000 \
                              -T $(srctree)/examples/standalone/riscv.lds
 
 PLATFORM_CPPFLAGS      += -ffixed-gp -fpic
-PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -gdwarf-2 -ffunction-sections
+PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections
 LDFLAGS_u-boot += --gc-sections -static -pie
 
 EFI_CRT0               := crt0_riscv_efi.o
index 5b04febd680eacad89db4fddb5164dbb927b1ea2..cc940712a8a4d632ca92bfccfd31f9b1d9d6cdff 100644 (file)
@@ -5,7 +5,6 @@
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
 
-PLATFORM_CPPFLAGS += -fno-strict-aliasing
 PLATFORM_CPPFLAGS += -fomit-frame-pointer
 PF_CPPFLAGS_X86   := $(call cc-option, -fno-toplevel-reorder, \
                     $(call cc-option, -fno-unit-at-a-time))