public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108074] New: Incorrect stringop-overflow warning
@ 2022-12-12 12:37 alastair.j.irving at gmail dot com
2022-12-12 12:57 ` [Bug tree-optimization/108074] [11/12 Regression] " rguenth at gcc dot gnu.org
2022-12-12 13:32 ` marxin at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: alastair.j.irving at gmail dot com @ 2022-12-12 12:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108074
Bug ID: 108074
Summary: Incorrect stringop-overflow warning
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: alastair.j.irving at gmail dot com
Target Milestone: ---
Created attachment 54071
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54071&action=edit
Reproducer
Compiling with -O2 or higher I get an incorrect warning:
test.c: In function ‘foo3’:
test.c:15:5: warning: ‘foo’ accessing 16 bytes in a region of size 8
[-Wstringop-overflow=]
This doesn't appear at lower optimization levels. It's also very sensative to
the function, for example removing the return on the next line makes the
warning go away.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/108074] [11/12 Regression] Incorrect stringop-overflow warning
2022-12-12 12:37 [Bug c/108074] New: Incorrect stringop-overflow warning alastair.j.irving at gmail dot com
@ 2022-12-12 12:57 ` rguenth at gcc dot gnu.org
2022-12-12 13:32 ` marxin at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-12 12:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108074
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
Summary|Incorrect stringop-overflow |[11/12 Regression]
|warning |Incorrect stringop-overflow
| |warning
Keywords| |needs-bisection
Target Milestone|--- |11.4
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
This has been fixed on trunk and is likely a duplicate.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/108074] [11/12 Regression] Incorrect stringop-overflow warning
2022-12-12 12:37 [Bug c/108074] New: Incorrect stringop-overflow warning alastair.j.irving at gmail dot com
2022-12-12 12:57 ` [Bug tree-optimization/108074] [11/12 Regression] " rguenth at gcc dot gnu.org
@ 2022-12-12 13:32 ` marxin at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-12 13:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108074
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 104162 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-12 13:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12 12:37 [Bug c/108074] New: Incorrect stringop-overflow warning alastair.j.irving at gmail dot com
2022-12-12 12:57 ` [Bug tree-optimization/108074] [11/12 Regression] " rguenth at gcc dot gnu.org
2022-12-12 13:32 ` marxin at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).