From: Rick Chen <rick@andestech.com>
Date: Thu, 10 Jan 2019 03:22:43 +0000 (+0800)
Subject: nds32: Remove gcc unused option
X-Git-Tag: v2025.01-rc5-pxa1908~3163^2~3
X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B?a=commitdiff_plain;h=28c107f05ede76924449fb214c02a826d2f7d02f;p=u-boot.git

nds32: Remove gcc unused option

-G0 is an old option, not support now,
So remove it.
It can help to fix compile error when
build with nds32 pre-build toolchain.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
---

diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk
index 12cec368d3..a0f14ae589 100644
--- a/arch/nds32/config.mk
+++ b/arch/nds32/config.mk
@@ -17,6 +17,6 @@ LDFLAGS_STANDALONE	+= -T $(srctree)/examples/standalone/nds32.lds
 
 PLATFORM_RELFLAGS	+= -fno-common -mrelax
 PLATFORM_RELFLAGS	+= -gdwarf-2
-PLATFORM_CPPFLAGS	+= -D__nds32__ -G0 -ffixed-10 -fpie
+PLATFORM_CPPFLAGS	+= -D__nds32__ -ffixed-10 -fpie
 
 LDFLAGS_u-boot		= --gc-sections --relax -pie