[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Richard Biener changed: What|Removed |Added Known to fail||11.5.0 Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Known to work||12.0 Target Milestone|11.5|12.0 --- Comment #11 from Richard Biener --- Fixed in GCC 12.
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Jakub Jelinek changed: What|Removed |Added Target Milestone|11.4|11.5 --- Comment #10 from Jakub Jelinek --- GCC 11.4 is being released, retargeting bugs to GCC 11.5.
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Richard Biener changed: What|Removed |Added Target Milestone|11.3|11.4 --- Comment #9 from Richard Biener --- GCC 11.3 is being released, retargeting bugs to GCC 11.4.
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Bug 101397 depends on bug 103143, which changed state. Bug 103143 Summary: [12 Regression] ICE due to infinite recursion in pointer-query.cc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103143 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Martin Sebor changed: What|Removed |Added Depends on||103143 --- Comment #8 from Martin Sebor --- (In reply to Siddhesh Poyarekar from comment #7) Thanks. I opened pr103143 for this GCC 12 regression. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103143 [Bug 103143] [12 Regression] ICE due to infinite recursion in pointer-query.cc
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Siddhesh Poyarekar changed: What|Removed |Added CC||siddhesh at gotplt dot org --- Comment #7 from Siddhesh Poyarekar --- (In reply to CVS Commits from comment #4) > The master branch has been updated by Martin Sebor : > > https://gcc.gnu.org/g:8bf5b49ebd2176b8c535147377381dd07fbdd643 > > commit r12-2422-g8bf5b49ebd2176b8c535147377381dd07fbdd643 > Author: Martin Sebor > Date: Tue Jul 20 13:48:20 2021 -0600 > > Correct stpcpy offset computation for -Warray-bounds et al. [PR101397]. This causes a crash with the following program due to an infinite recursion: typedef __SIZE_TYPE__ size_t; void __attribute__ ((noinline)) foo (size_t x) { struct T { char buf[64]; char buf2[64]; } t; char *p = [8]; char *r = t.buf2; size_t i; for (i = 0; i < x; i++) { r = __builtin_mempcpy (r, p, i); p = r + 1; } } $ cc1.r12-2422 -quiet -o - repro.c .file "repro.c" .text Segmentation fault (core dumped)
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Richard Biener changed: What|Removed |Added Target Milestone|11.2|11.3 --- Comment #6 from Richard Biener --- GCC 11.2 is being released, retargeting bugs to GCC 11.3
[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Martin Sebor changed: What|Removed |Added Known to fail||11.1.0 Summary|[11/12 Regression] spurious |[11 Regression] spurious |warning writing to the |warning writing to the |result of stpcpy minus 1|result of stpcpy minus 1 --- Comment #5 from Martin Sebor --- Fixed in GCC 12.0. Will backport to 11 after a bit.