re PR middle-end/41855 (ICE in refs_may_alias_p_1, at tree-ssa-alias.c:855)
authorRichard Guenther <rguenther@suse.de>
Wed, 28 Oct 2009 13:28:32 +0000 (13:28 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Oct 2009 13:28:32 +0000 (13:28 +0000)
commit1307c758a3aad3df3e7af66f6ec68b4cb599b054
treec6cbdb47b276ee46a1baf832ef5152d54c71249e
parentde5b9f12c55af9a6f48a2febe7cf345fe0bd9163
re PR middle-end/41855 (ICE in refs_may_alias_p_1, at tree-ssa-alias.c:855)

2009-10-28  Richard Guenther  <rguenther@suse.de>

PR middle-end/41855
* tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
(ref_maybe_used_by_call_p_1): Fix bcopy handling.
(call_may_clobber_ref_p_1): Likewise.
* tree-ssa-structalias.c (find_func_aliases): Likewise.
* alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.

* gfortran.dg/lto/20091028-1_0.f90: New testcase.
* gfortran.dg/lto/20091028-1_1.c: Likewise.
* gfortran.dg/lto/20091028-2_0.f90: Likewise.
* gfortran.dg/lto/20091028-2_1.c: Likewise.

From-SVN: r153655
gcc/ChangeLog
gcc/alias.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/lto/20091028-1_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/20091028-1_1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/20091028-2_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/20091028-2_1.c [new file with mode: 0644]
gcc/tree-ssa-alias.c
gcc/tree-ssa-structalias.c