This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/56210] invalid -Warray-bounds warning
- 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, 14 Dec 2017 15:13:04 +0000
- Subject: [Bug tree-optimization/56210] invalid -Warray-bounds warning
- Auto-submitted: auto-generated
- References: <bug-56210-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56210
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Known to work| |4.8.5
Known to fail| |4.8.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The diagnostic is long fixed but the folding failure / const promotion issue
remains:
f ()
{
static char key[4] = "abc";
char * p;
int _1;
char _2;
<bb 2> [local count: 153142428]:
<bb 3> [local count: 1020054733]:
# p_12 = PHI <";"(2), p_8(6)>
_1 = __builtin_strncmp (p_12, &key, 3);