CXXFLAGS: add -fcheck-new whenever -fno-exceptions is used

This is to avoid GCC to optimize null-pointer checks away, in case the
default operator new is used together with -fno-exceptions.
This commit is contained in:
Beat Küng
2016-08-22 08:35:01 +02:00
parent f3c4bd936e
commit c7da88e383
317 changed files with 317 additions and 317 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
endif
ARCHCFLAGS = -fno-builtin
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fno-rtti
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
ARCHDEFINES =