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

            Bug ID: 122622
           Summary: Unusable output from
                    -fdiagnostics-path-format=inline-events when source is
                    unavailable
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: SARIF
          Severity: normal
          Priority: P3
         Component: diagnostics
          Assignee: dmalcolm at redhat dot com
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

See e.g.
https://lists.fedoraproject.org/archives/list/[email protected]/message/HHMFLISOUWYAQJQDYTTFNO5Q25HI6BG2/


% sarif-replay 452-M3DZ-csmock.sarif
/builddir/build/BUILD/sscg-4.0.0-build/sscg-sscg-4.0.0/test/create_cert_test.c:118:3:
warning: leak of ‘ext_str’ [GCC_ANALYZER_WARNING:
warning[-Wanalyzer-malloc-leak]]
  event 1
    │
    │
    └──> events 2-17
           │
           │......
           │......
           │......
           │......
           │......
           │......
           │......
           │

where the execution path output is useless.  The issue is (presumably) that
sarif-replay can't find the source code.  We should probably check for that
case earlier in the the inline-events path-printing code in gcc/diagnostics/

Reply via email to