diff options
author | Richard Guenther <rguenther@suse.de> | 2009-02-17 13:38:06 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-02-17 13:38:06 +0000 |
commit | a60b7ddb73647067ca6efbcc53802ffb596f93c1 (patch) | |
tree | 10bf86c424729e5e75c7f55cd36f660c7a8d0751 /gcc/tree-ssa-structalias.c | |
parent | 723a3aa22c0e87f522f75c198aa03f8feb48411b (diff) | |
download | gcc-a60b7ddb73647067ca6efbcc53802ffb596f93c1.zip gcc-a60b7ddb73647067ca6efbcc53802ffb596f93c1.tar.gz gcc-a60b7ddb73647067ca6efbcc53802ffb596f93c1.tar.bz2 |
re PR tree-optimization/39207 (Strict aliasing warnings in libstdc++ headers)
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.
From-SVN: r144228
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 03f7a4a..f9962b3 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)) |