From 19416210b37db0584cd0b3f3b3961324b8973d25 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Thu, 1 Feb 2018 15:54:20 +0000 Subject: avr.c (avr_option_override): Move disabling of -fdelete-null-pointer-checks to... gcc/ * config/avr/avr.c (avr_option_override): Move disabling of -fdelete-null-pointer-checks to... * common/config/avr/avr-common.c (avr_option_optimization_table): ...here. testsuite/ * gcc.dg/tree-ssa/vrp111.c (dg-options): Add -fdelete-null-pointer-checks. From-SVN: r257301 --- gcc/config/avr/avr.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gcc/config/avr/avr.c') diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index ad15512..81c35e7 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -730,14 +730,6 @@ avr_set_core_architecture (void) static void avr_option_override (void) { - /* Disable -fdelete-null-pointer-checks option for AVR target. - This option compiler assumes that dereferencing of a null pointer - would halt the program. For AVR this assumption is not true and - programs can safely dereference null pointers. Changes made by this - option may not work properly for AVR. So disable this option. */ - - flag_delete_null_pointer_checks = 0; - /* caller-save.c looks for call-clobbered hard registers that are assigned to pseudos that cross calls and tries so save-restore them around calls in order to reduce the number of stack slots needed. -- cgit v1.1