re PR tree-optimization/44831 (internal compiler error: verify_stmts failed when...
authorRichard Guenther <rguenther@suse.de>
Thu, 8 Jul 2010 11:38:43 +0000 (11:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 Jul 2010 11:38:43 +0000 (11:38 +0000)
commitf076debaba31c16b9a2f06394a43e38025a3a390
tree222d856bd4e364f7cc1df6fadbcc8ad5bb0f1728
parent20ede5c64d71cb0fb25a445f93752c7e6e861dba
re PR tree-optimization/44831 (internal compiler error: verify_stmts failed when compiling wine)

2010-07-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/44831
* tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
a MEM_REF preserving TBAA info of the original dereference.
Dereference the original pointer if the address is not
invariant.
(propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
at least one invariant address that we are going to dereference.

* gcc.c-torture/compile/pr44831.c: New testcase.
* gcc.dg/tree-ssa/pr21463.c: Adjust.

From-SVN: r161950
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr44831.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr21463.c
gcc/tree-ssa-phiprop.c