public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95190] New: Documentation for -Wstringop-overflow
@ 2020-05-18 14:01 stayprivate at gmail dot com
  2020-05-18 17:05 ` [Bug lto/95190] " msebor at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: stayprivate at gmail dot com @ 2020-05-18 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95190
           Summary: Documentation for -Wstringop-overflow
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stayprivate at gmail dot com
  Target Milestone: ---

I'm compiling code with 10.1 for the first time. I'm getting a warning:

"writing 1 bytes into a region of size 0 -Wstringop-overflow=". Yet
-Wno-stringop-overflow is passed to the compiler.  I tried disabling the
warning with #pragma diagnostic, no luck there.

Then I realized the error came from the link stage. Surely related to lto. I
modified my cmake files to add the -Wno-stringop-overflow to the link command
line and the warning disappear.

I'm surprise by this behavior. I looked through the documentation and could not
find anything that mentionned this. Is this something that is worth improving
in  the documentation or do I just need to get smarter ;-)

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

end of thread, other threads:[~2020-12-08  7:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-18 14:01 [Bug c++/95190] New: Documentation for -Wstringop-overflow stayprivate at gmail dot com
2020-05-18 17:05 ` [Bug lto/95190] " msebor at gcc dot gnu.org
2020-05-19  6:32 ` rguenth at gcc dot gnu.org
2020-05-19  7:04 ` marxin at gcc dot gnu.org
2020-05-19 16:29 ` stayprivate at gmail dot com
2020-05-19 16:35 ` stayprivate at gmail dot com
2020-05-22 10:28 ` cvs-commit at gcc dot gnu.org
2020-05-22 10:33 ` cvs-commit at gcc dot gnu.org
2020-12-07 23:13 ` egallager at gcc dot gnu.org
2020-12-08  7:49 ` rguenth 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).