public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106931] New: -Wstringop-overflow false positive
@ 2022-09-13 18:34 kasper93 at gmail dot com
  2022-09-13 18:38 ` [Bug tree-optimization/106931] [12/13 Regression] -Wstringop-overflow false positive -O3 -fno-tree-vectorize pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kasper93 at gmail dot com @ 2022-09-13 18:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106931

            Bug ID: 106931
           Summary: -Wstringop-overflow false positive
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kasper93 at gmail dot com
  Target Milestone: ---

Created attachment 53572
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53572&action=edit
minimal test case

Hello,

I noticed increased amount of -Wstringop-overflow warnings on FFmpeg build with
gcc 12.2.0, doesn't happen with gcc 11.3.0. At first glance most of them are
bogus and happen only when specific set of compiler flags are used.

I minimized one case, see attachment, it is pretty simple. I think gcc should
handle this properly. Happens with this specific command
gcc -O3 -fno-tree-vectorize -Wstringop-overflow -c test.c

Attached case is minimized cbs_av1.c. For more cases which looks like gcc12
regression you can compile FFmpeg
./configure --enable-lto
make

Note that lto has to be enabled, without lto it doesn't produce those warnings.
I can minimize more cases, but frankly I don't want to spend time minimizing it
only to see the same pattern at the end. So maybe let's work on this first.

Tested with FFmpeg 60d8c2019f

Thanks,
Kacper

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-15  0:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 18:34 [Bug tree-optimization/106931] New: -Wstringop-overflow false positive kasper93 at gmail dot com
2022-09-13 18:38 ` [Bug tree-optimization/106931] [12/13 Regression] -Wstringop-overflow false positive -O3 -fno-tree-vectorize pinskia at gcc dot gnu.org
2022-09-13 19:21 ` [Bug tree-optimization/106931] [12/13 Regression] -Wstringop-overflow false positive -O3 -fno-tree-vectorize since r12-3300-gece28da924ddda8b marxin at gcc dot gnu.org
2022-09-13 20:09 ` [Bug tree-optimization/106931] [12/13 Regression] -Wstringop-overflow false positive -O3 -fno-tree-vectorize with loop unrolling " msebor at gcc dot gnu.org
2022-10-18  8:46 ` rguenth at gcc dot gnu.org
2023-05-08 12:25 ` [Bug tree-optimization/106931] [12/13/14 " rguenth at gcc dot gnu.org
2024-03-15  0:45 ` [Bug tree-optimization/106931] [12 " law 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).