OSDN Git Service

2014-03-18 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Mar 2014 10:58:22 +0000 (10:58 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Mar 2014 10:58:22 +0000 (10:58 +0000)
commitc1997ae1e3bccbfcaaf344e1bfa13758f3dfda95
tree09d503bb033fd1bcbe0e96188cc76f3a31b7b41d
parent405909382bc547ac006a5bbbfeb8d81f07fc733b
2014-03-18  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.

2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>

* tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
computation using the precision of the index type.

2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>

* tree-dfa.c (get_ref_base_and_extent): Compute the offset using
double ints throughout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@208640 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