Bug 66811 - RFE: have jit dumps be compileable as C code
Summary: RFE: have jit dumps be compileable as C code
Status: ASSIGNED
Alias: None
Product: gcc
Classification: Unclassified
Component: jit (show other bugs)
Version: 6.0
: P3 enhancement
Target Milestone: ---
Assignee: David Malcolm
URL:
Keywords:
Depends on:
Blocks: jit-ravi
  Show dependency treegraph
 
Reported: 2015-07-08 14:22 UTC by David Malcolm
Modified: 2021-02-12 10:03 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-05-07 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Malcolm 2015-07-08 14:22:10 UTC
Whilst trying to track down a code generation issue with the jit, a user noted that gcc_jit_context_dump_to_file resembles C, but isn't C, and that it would be useful if it was compileable as C, so that we can compare the C frontend with the jit:
  https://gcc.gnu.org/ml/jit/2015-q3/msg00021.html

Specific pain-points were:
  1) types are in wrong order
  2) function types are incorrectly output
  3) array types are incorrectly output

(in that mail "4) in one case as least a pointer was missing." turned out to be user error).
Comment 1 Eric Gallager 2018-05-07 23:28:10 UTC
Confirming as an enhancement