This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/80533] Alias analysis of zero length array does not recognize accesses beyond end of array
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Apr 2017 12:35:16 +0000
- Subject: [Bug middle-end/80533] Alias analysis of zero length array does not recognize accesses beyond end of array
- Auto-submitted: auto-generated
- References: <bug-80533-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80533
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Apr 27 12:34:45 2017
New Revision: 247327
URL: https://gcc.gnu.org/viewcvs?rev=247327&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/emit-rtl.c