mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +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:
@@ -130,7 +130,7 @@ UVISION_GCC_PRJ_SETTINGS = {'root_group':'',
|
||||
'ext_remap' : UVISION_GCC_EXT_REMAP,
|
||||
'uv_file_type' : UVISION_FILE_TYPE_MAP,
|
||||
'c_misc' : ('.//Carm', '-fno-builtin -Wall -Wstrict-prototypes -Wshadow -Wundef -g'),
|
||||
'cxx_misc' : ('.//Carm', '-fno-builtin -fno-exceptions -fno-rtti -Wall -Wshadow -Wundef -g'),
|
||||
'cxx_misc' : ('.//Carm', '-fno-builtin -fno-exceptions -fcheck-new -fno-rtti -Wall -Wshadow -Wundef -g'),
|
||||
'ld_misc' : ('.//LDarm', '--entry=__start -lgcc'),
|
||||
'cxx_def' : ('.//Carm', ''),}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user