arch: Move -nostdinc++ to Tooolchain.defs

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-04-30 02:46:08 +08:00
committed by Gustavo Henrique Nihei
parent c1e5ba4602
commit 94cb0c6072
19 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN),GNU_EABI)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -157,7 +157,7 @@ ifeq ($(CONFIG_MM_KASAN),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -119,7 +119,7 @@ else
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -212,7 +212,7 @@ endif
# Architecture flags # Architecture flags
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -111,7 +111,7 @@ ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),GNU_EABI)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -221,7 +221,7 @@ endif
# Architecture flags # Architecture flags
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -91,7 +91,7 @@ else
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -37,7 +37,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -56,7 +56,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION) ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
ARCHCPUFLAGS += -Wa,-p -mmsg-full-path -TARG:arch=cevaxc5 -Wa,-vdiv4 -Wno-unused ARCHCPUFLAGS += -Wa,-p -mmsg-full-path -TARG:arch=cevaxc5 -Wa,-vdiv4 -Wno-unused
+1 -1
View File
@@ -56,7 +56,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION) ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
ARCHCPUFLAGS += -Wa,-p ARCHCPUFLAGS += -Wa,-p
+1 -1
View File
@@ -284,7 +284,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -61,7 +61,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -33,7 +33,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
# Default toolchain # Default toolchain
+1 -1
View File
@@ -44,7 +44,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -56,7 +56,7 @@ else
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -72,7 +72,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -60,7 +60,7 @@ else
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
+1 -1
View File
@@ -60,7 +60,7 @@ else
endif endif
ARCHCFLAGS += -fno-common ARCHCFLAGS += -fno-common
ARCHCXXFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++
ifneq ($(CONFIG_CXX_EXCEPTION),y) ifneq ($(CONFIG_CXX_EXCEPTION),y)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new ARCHCXXFLAGS += -fno-exceptions -fcheck-new
@@ -38,7 +38,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
endif endif
ARCHCXXFLAGS += -nostdinc++
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
ARCHWARNINGSXX = -Wall -Wshadow -Wundef ARCHWARNINGSXX = -Wall -Wshadow -Wundef
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10 ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10