diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-17 13:38:06 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-17 13:38:06 +0000 |
commit | 7197c4696d8de478aa749d59bf1be17cfe748cfc (patch) | |
tree | 10bf86c424729e5e75c7f55cd36f660c7a8d0751 /gcc | |
parent | 394f6aed664aea9d522bc52891e17c1a2dd2e63e (diff) | |
download | gcc-7197c4696d8de478aa749d59bf1be17cfe748cfc.tar.gz |
2009-02-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39207
* tree-ssa-structalias.c (find_what_p_points_to): Do not emit
strict-aliasing warnings for pointers pointing to NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144228 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-ssa-structalias.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e30a66812ab..d58002070a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-02-17 Richard Guenther <rguenther@suse.de> + + PR tree-optimization/39207 + * tree-ssa-structalias.c (find_what_p_points_to): Do not emit + strict-aliasing warnings for pointers pointing to NULL. + 2009-02-16 Joseph Myers <joseph@codesourcery.com> PR c/35446 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 03f7a4ade65..f9962b33a98 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4935,6 +4935,7 @@ find_what_p_points_to (tree p) { pi->pt_vars = NULL; if (pruned > 0 + && !pi->pt_null && pi->is_dereferenced && warn_strict_aliasing > 0 && !SSA_NAME_IS_DEFAULT_DEF (p)) |