https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106020
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Spurious warnings about |Spurious warnings about
|stringop overflows only |stringop overflows with
|with LTO |-march=skylake -O3
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #7)
> Created attachment 55107 [details]
> single file testcase
>
> `-O3 -W -Wall t.cc -flto -march=skylake` is enough to invoke the warning.
>
> NOTE -march=skylake is important.
> I think this might be a dup of another vectorizer issue with this warning
> then.
Oh you don't need -flto to invoke the warning either.