public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/104308] New: no location info provided for [-Wanalyzer-use-of-uninitialized-value] warnings
@ 2022-01-31 15:09 kdudka at redhat dot com
  2022-01-31 15:56 ` [Bug analyzer/104308] " dmalcolm at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: kdudka at redhat dot com @ 2022-01-31 15:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104308
           Summary: no location info provided for
                    [-Wanalyzer-use-of-uninitialized-value] warnings
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: kdudka at redhat dot com
  Target Milestone: ---

I can see new (technically valid) analyzer warnings with gcc-12 on Fedora
rawhide without any location information being provided.  This makes the output
difficult to use for csdiff utilities as well as human reviewers:

$ printf '#include <string.h>\nint main() { char s[5]; memmove(s, s + 1, 2);
}\n' | gcc -fanalyzer -fdiagnostics-path-format=separate-events -c -xc -
In function ‘main’:
cc1: warning: use of uninitialized value ‘*(short unsigned int *)&s + 1’
[CWE-457] [-Wanalyzer-use-of-uninitialized-value]
cc1: note: (1) use of uninitialized value ‘*(short unsigned int *)&s + 1’ here

The same command produces no output with gcc-11.2.1 though.

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

end of thread, other threads:[~2022-04-25 23:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 15:09 [Bug analyzer/104308] New: no location info provided for [-Wanalyzer-use-of-uninitialized-value] warnings kdudka at redhat dot com
2022-01-31 15:56 ` [Bug analyzer/104308] " dmalcolm at gcc dot gnu.org
2022-01-31 15:57 ` dmalcolm at gcc dot gnu.org
2022-01-31 16:40 ` kdudka at redhat dot com
2022-01-31 16:50 ` dmalcolm at gcc dot gnu.org
2022-03-25 21:52 ` dmalcolm at gcc dot gnu.org
2022-03-25 21:52 ` dmalcolm at gcc dot gnu.org
2022-03-28 13:44 ` cvs-commit at gcc dot gnu.org
2022-03-28 13:52 ` dmalcolm at gcc dot gnu.org
2022-04-13  7:51 ` kdudka at redhat dot com
2022-04-13 22:05 ` dmalcolm at gcc dot gnu.org
2022-04-14 13:27 ` dmalcolm at gcc dot gnu.org
2022-04-25 23:36 ` cvs-commit at gcc dot gnu.org
2022-04-25 23:39 ` dmalcolm 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).