2013-11-05 Richard Biener <rguenther@suse.de>
commit435749aa288448f60c87cb0eb8442951158bddcf
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Nov 2013 13:24:13 +0000 (5 13:24 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Nov 2013 13:24:13 +0000 (5 13:24 +0000)
treecae52e40ed9babcd4e8a4c09c518982dba93ab3b
parent08c5f4d5555bfa773ae3ab95d6b35b5b79f43b76
2013-11-05  Richard Biener  <rguenther@suse.de>

PR middle-end/58941
* tree-dfa.c (get_ref_base_and_extent): Merge common code
in MEM_REF and TARGET_MEM_REF handling.  Make sure to
process trailing array detection before diving into the
view-converted object (and possibly apply some extra offset).

* gcc.dg/torture/pr58941.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204391 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr58941.c [new file with mode: 0644]
gcc/tree-dfa.c