re PR middle-end/80533 (Alias analysis of zero length array does not recognize access...
authorRichard Biener <rguenther@suse.de>
Thu, 27 Apr 2017 12:34:45 +0000 (12:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Apr 2017 12:34:45 +0000 (12:34 +0000)
commit12ead254ee6dbb32760593207417ca2ebcc2ef59
tree56d21089cf58902f3d22508f88dd407ea4c90eef
parent3b2249aa1bb3f0240d45130a185c477c4530dc5a
re PR middle-end/80533 (Alias analysis of zero length array does not recognize accesses beyond end of array)

2017-04-27  Richard Biener  <rguenther@suse.de>

PR middle-end/80533
* emit-rtl.c (set_mem_attributes_minus_bitpos): When
stripping ARRAY_REFs from MEM_EXPR make sure we're not
keeping a reference to a trailing array.

From-SVN: r247327
gcc/ChangeLog
gcc/emit-rtl.c