mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user