diff options
author | Chung-Ju Wu <jasonwucj@gmail.com> | 2018-06-03 03:17:40 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2018-06-03 03:17:40 +0000 |
commit | 1cc591084717fcabbdbddf79601fb8545ac111b6 (patch) | |
tree | 3d262a8d7d2528dc9a1a5e4a61d58f67b8d882bd /gcc/common | |
parent | 57ea03ad4a0dde989d1c38a0028378964104bbd7 (diff) | |
download | gcc-1cc591084717fcabbdbddf79601fb8545ac111b6.zip gcc-1cc591084717fcabbdbddf79601fb8545ac111b6.tar.gz gcc-1cc591084717fcabbdbddf79601fb8545ac111b6.tar.bz2 |
[NDS32] Disable -fdelete-null-pointer-checks by default for nds32*-*-elf.
gcc/
* common/config/nds32/nds32-common.c (nds32_option_optimization_table):
Disable -fdelete-null-pointer-checks for ELF toolchain.
From-SVN: r261122
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/nds32/nds32-common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/common/config/nds32/nds32-common.c b/gcc/common/config/nds32/nds32-common.c index e4478f1..197f06c 100644 --- a/gcc/common/config/nds32/nds32-common.c +++ b/gcc/common/config/nds32/nds32-common.c @@ -74,6 +74,11 @@ nds32_handle_option (struct gcc_options *opts ATTRIBUTE_UNUSED, /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ static const struct default_options nds32_option_optimization_table[] = { +#if TARGET_LINUX_ABI == 0 + /* Disable -fdelete-null-pointer-checks by default in ELF toolchain. */ + { OPT_LEVELS_ALL, OPT_fdelete_null_pointer_checks, + NULL, 0 }, +#endif /* Enable -fsched-pressure by default at -O1 and above. */ { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, /* Enable -fomit-frame-pointer by default at all optimization levels. */ |