diff options
author | Richard Biener <rguenther@suse.de> | 2015-09-21 12:33:23 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-09-21 12:33:23 +0000 |
commit | 06da803c9fb2c7feadf1c7fbc7c67430547d37ab (patch) | |
tree | e57a99ba7a58ca627da145b15ee393faceb562e9 /gcc | |
parent | 70b95cee5114e180bef9785b88e3c7153888978b (diff) | |
download | gcc-06da803c9fb2c7feadf1c7fbc7c67430547d37ab.zip gcc-06da803c9fb2c7feadf1c7fbc7c67430547d37ab.tar.gz gcc-06da803c9fb2c7feadf1c7fbc7c67430547d37ab.tar.bz2 |
re PR middle-end/67651 (Optimizer assumes nothing can reside at address 0 despite -fno-delete-null-pointer-checks)
2015-09-21 Richard Biener <rguenther@suse.de>
PR middle-end/67651
* rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
address with -fno-delete-null-pointer-checks.
From-SVN: r227968
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/rtlanal.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce9a20f..246237b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-09-21 Richard Biener <rguenther@suse.de> + + PR middle-end/67651 + * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero + address with -fno-delete-null-pointer-checks. + 2015-09-21 Alan Lawrence <alan.lawrence@arm.com> * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to... diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index b1be4db..815fc49 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -723,7 +723,7 @@ nonzero_address_p (const_rtx x) switch (code) { case SYMBOL_REF: - return !SYMBOL_REF_WEAK (x); + return flag_delete_null_pointer_checks && !SYMBOL_REF_WEAK (x); case LABEL_REF: return true; |