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
@@ -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', ''),}