4.7 Submitting patches

Please read the contribution guidelines for gcc at ‘https://gcc.gnu.org/contribute.html’.

Patches for the jit should be sent to both the and mailing lists, with “jit” and “PATCH” in the Subject line.

You don’t need to do a full bootstrap for code that just touches the jit and testsuite/jit.dg subdirectories. However, please run make check-jit before submitting the patch, and mention the results in your email (along with the host triple that the tests were run on).

A good patch should contain the information listed in the gcc contribution guide linked to above; for a jit patch, the patch shold contain:

A patch that adds new API entrypoints should also contain:

Depending on the patch you can either extend an existing test case, or add a new test case. If you add an entirely new testcase: jit.exp expects jit testcases to begin with test-, or test-error- (for a testcase that generates an error on a gcc_jit_context).

Every new testcase that doesn’t generate errors should also touch gcc/testsuite/jit.dg/all-non-failing-tests.h:

Typically a patch that touches the .rst documentation will also need the texinfo to be regenerated. You can do this with Sphinx 1.021 or later by running make texinfo within SRCDIR/gcc/jit/docs. Don’t do this within the patch sent to the mailing list; it can often be relatively large and inconsequential (e.g. anchor renumbering), rather like generated “configure” changes from configure.ac. You can regenerate it when committing to svn.


Footnotes

(21)

https://sphinx-doc.org/