diff options
author | Orlando Arias <oarias@knights.ucf.edu> | 2017-10-20 04:49:57 +0000 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2017-10-20 00:49:57 -0400 |
commit | 793c096d45d11bdb0152c7065a473d20c247a865 (patch) | |
tree | 02b4a4b0ef29655d25ee827a41a41f70020391c2 /gcc/config/msp430 | |
parent | b6b240edae1d01a0d5746d940a201e635a449360 (diff) | |
download | gcc-793c096d45d11bdb0152c7065a473d20c247a865.zip gcc-793c096d45d11bdb0152c7065a473d20c247a865.tar.gz gcc-793c096d45d11bdb0152c7065a473d20c247a865.tar.bz2 |
msp430.c (msp430_option_override): Disable -fdelete-null-pointer-checks.
* config/msp430/msp430.c (msp430_option_override): Disable
-fdelete-null-pointer-checks.
* doc/invoke.text (-fdelete-null-pointer-checks): Document that.
* lib/target-supports.exp (check_effective_target_keeps_null_pointer_checks):
Add msp430 to the list.
From-SVN: r253921
Diffstat (limited to 'gcc/config/msp430')
-rw-r--r-- | gcc/config/msp430/msp430.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index 4f32fc8..9466d09 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -751,6 +751,10 @@ hwmult_name (unsigned int val) static void msp430_option_override (void) { + /* The MSP430 architecture can safely dereference a NULL pointer. In fact, + there are memory mapped registers there. */ + flag_delete_null_pointer_checks = 0; + init_machine_status = msp430_init_machine_status; if (target_cpu) |