re PR tree-optimization/38826 (points-to result wrong for reads from call-clobbered...
authorRichard Guenther <rguenther@suse.de>
Wed, 14 Jan 2009 16:45:22 +0000 (16:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 14 Jan 2009 16:45:22 +0000 (16:45 +0000)
commit10bd6c5c4ab2fd182fc4e24ae539a97a9245774f
tree8fa08c2737a3ac983b265b46753713f8c3d356b3
parent7fe8ccdae51b85dd812af0d06df6f1a730064bc1
re PR tree-optimization/38826 (points-to result wrong for reads from call-clobbered vars)

2009-01-14  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/38826
PR middle-end/38477
* tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
initialization notes only if we actually emitted a warning.
(intra_create_variable_infos): Add constraints for a result decl
that is passed by hidden reference.
(build_pred_graph): Mark all related variables non-direct on
address-taking.

* gcc.dg/Wstrict-aliasing-bogus-pta-1.c: New testcase.

From-SVN: r143374
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-pta-1.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c