public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json
@ 2020-07-02 12:55 christian.friedl at gmx dot at
  2020-07-02 13:00 ` [Bug other/96032] " christian.friedl at gmx dot at
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: christian.friedl at gmx dot at @ 2020-07-02 12:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96032
           Summary: Feature request: Add a way to format output from
                    --fdiagnostics-format=json
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christian.friedl at gmx dot at
  Target Milestone: ---

I would like to implement a filter for warnings from gfortran using
--fdiagnostics-format=json . To print out the warnings in the way gfortran does
normally I would need a way to convert them to text which should be the same as
what --fdiagnostics-format=json produces. Since gfortran itself knows best how
to print its warnings - could you provide that functionality?

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

* [Bug other/96032] Feature request: Add a way to format output from --fdiagnostics-format=json
  2020-07-02 12:55 [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json christian.friedl at gmx dot at
@ 2020-07-02 13:00 ` christian.friedl at gmx dot at
  2021-08-24  9:50 ` [Bug middle-end/96032] " pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: christian.friedl at gmx dot at @ 2020-07-02 13:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Christian Friedl <christian.friedl at gmx dot at> ---
Disclaimer: I posted a request for help regarding this exact feature on the
gcc-help list. (https://gcc.gnu.org/pipermail/gcc-help/2020-July/139110.html)

After reading through the list I came to the conclusion that this is not
implemented and probably a feature request would be more appropriate.

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

* [Bug middle-end/96032] Feature request: Add a way to format output from --fdiagnostics-format=json
  2020-07-02 12:55 [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json christian.friedl at gmx dot at
  2020-07-02 13:00 ` [Bug other/96032] " christian.friedl at gmx dot at
@ 2021-08-24  9:50 ` pinskia at gcc dot gnu.org
  2021-08-24 13:09 ` [Bug middle-end/96032] RFE: add a way to use output from --fdiagnostics-format=json as input dmalcolm at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-24  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
           Severity|normal                      |enhancement
          Component|other                       |middle-end
   Target Milestone|---                         |9.0
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 9 with r9-4156.  See PR 19165 too.

*** This bug has been marked as a duplicate of bug 19165 ***

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

* [Bug middle-end/96032] RFE: add a way to use output from --fdiagnostics-format=json as input
  2020-07-02 12:55 [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json christian.friedl at gmx dot at
  2020-07-02 13:00 ` [Bug other/96032] " christian.friedl at gmx dot at
  2021-08-24  9:50 ` [Bug middle-end/96032] " pinskia at gcc dot gnu.org
@ 2021-08-24 13:09 ` dmalcolm at gcc dot gnu.org
  2022-01-09  3:16 ` pinskia at gcc dot gnu.org
  2022-07-08 18:30 ` dmalcolm at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-08-24 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmalcolm at gcc dot gnu.org
   Last reconfirmed|                            |2021-08-24
         Resolution|DUPLICATE                   |---
            Summary|Feature request: Add a way  |RFE: add a way to use
                   |to format output from       |output from
                   |--fdiagnostics-format=json  |--fdiagnostics-format=json
                   |                            |as input
     Ever confirmed|0                           |1
             Status|RESOLVED                    |REOPENED

--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Fixed in GCC 9 with r9-4156.  See PR 19165 too.
> 
> *** This bug has been marked as a duplicate of bug 19165 ***

Bug 19165 covers adding JSON *output*; what this bug is asking for is a way to
read in JSON as input, and instead generate the usual textual output (or,
indeed other output formats).  Ideally we'd be able to "round trip" the
diagnostic data through JSON.

Reopening; it seems like a useful thing for GCC to be able to do. Similarly, it
would be good to be able to use SARIF as an input format (and output format),
and ideally roundtrip through SARIF - but that's another RFE.

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

* [Bug middle-end/96032] RFE: add a way to use output from --fdiagnostics-format=json as input
  2020-07-02 12:55 [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json christian.friedl at gmx dot at
                   ` (2 preceding siblings ...)
  2021-08-24 13:09 ` [Bug middle-end/96032] RFE: add a way to use output from --fdiagnostics-format=json as input dmalcolm at gcc dot gnu.org
@ 2022-01-09  3:16 ` pinskia at gcc dot gnu.org
  2022-07-08 18:30 ` dmalcolm at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09  3:16 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.0                         |---

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

* [Bug middle-end/96032] RFE: add a way to use output from --fdiagnostics-format=json as input
  2020-07-02 12:55 [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json christian.friedl at gmx dot at
                   ` (3 preceding siblings ...)
  2022-01-09  3:16 ` pinskia at gcc dot gnu.org
@ 2022-07-08 18:30 ` dmalcolm at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-07-08 18:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
I posted a prototype implementation of this here:
  "[PATCH 00/12] RFC: Replay of serialized diagnostics"
    https://gcc.gnu.org/pipermail/gcc-patches/2022-June/597051.html

(doesn't fully work; see the many caveats in that post)

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

end of thread, other threads:[~2022-07-08 18:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 12:55 [Bug other/96032] New: Feature request: Add a way to format output from --fdiagnostics-format=json christian.friedl at gmx dot at
2020-07-02 13:00 ` [Bug other/96032] " christian.friedl at gmx dot at
2021-08-24  9:50 ` [Bug middle-end/96032] " pinskia at gcc dot gnu.org
2021-08-24 13:09 ` [Bug middle-end/96032] RFE: add a way to use output from --fdiagnostics-format=json as input dmalcolm at gcc dot gnu.org
2022-01-09  3:16 ` pinskia at gcc dot gnu.org
2022-07-08 18:30 ` 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).