]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/39207 (Strict aliasing warnings in libstdc++ headers)
authorRichard Guenther <rguenther@suse.de>
Tue, 17 Feb 2009 13:38:06 +0000 (13:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 17 Feb 2009 13:38:06 +0000 (13:38 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index e30a66812ab4a69097441c937da4f20932894ca6..d58002070a8ab7d8246312f0fce6395f98f6b656 100644 (file)
@@ -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
index 03f7a4ade65a0dcb96878d757b723ba371356c3f..f9962b33a98d638c66011e91a766be757c49c838 100644 (file)
@@ -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))