2013-11-19 Richard Biener <rguenther@suse.de>
commitb07489da46850b7ef8701e0ab902c9bad3f2e7c3
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Nov 2013 09:22:45 +0000 (19 09:22 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Nov 2013 09:22:45 +0000 (19 09:22 +0000)
tree3baa26929160898b87ddf32a107277665f880551
parent06e6944ea0ea59ffa732359d1ad075b971647f6d
2013-11-19  Richard Biener  <rguenther@suse.de>

Backport from mainline
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/branches/gcc-4_8-branch@205011 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