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.

Reply via email to