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
This commit is contained in:
parent
723a3aa22c
commit
a60b7ddb73
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue