diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-06-30 19:27:19 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-06-30 19:27:19 +0000 |
commit | fa22c20d5ae9df54a5f96f4f72db72a2c4c8e2c7 (patch) | |
tree | 216dcfe8525aa7d749c5a1c65ca69a8493f4dfac /gcc/jit/docs/cp | |
parent | a6314e15e0c5671e71f4511011a125aab3cc3d6a (diff) | |
download | gcc-fa22c20d5ae9df54a5f96f4f72db72a2c4c8e2c7.zip gcc-fa22c20d5ae9df54a5f96f4f72db72a2c4c8e2c7.tar.gz gcc-fa22c20d5ae9df54a5f96f4f72db72a2c4c8e2c7.tar.bz2 |
PR jit/66628: add gcc_jit_context_add_command_line_option
gcc/jit/ChangeLog:
PR jit/66628
* docs/cp/topics/contexts.rst (Additional command-line options):
New section.
* docs/topics/compatibility.rst: New file.
* docs/topics/contexts.rst (Additional command-line options): New
section.
* docs/topics/index.rst: Add compatibility.rst.
* docs/_build/texinfo/libgccjit.texi: Regenerate.
* jit-playback.c (make_fake_args): Add call to
append_command_line_options.
* jit-recording.c: Within namespace gcc::jit...
(recording::context::~context): Free the optnames within
m_command_line_options.
(recording::context::set_bool_option): Likewise.
(recording::context::add_command_line_option): New method.
(recording::context::append_command_line_options): New method.
(recording::context::dump_reproducer_to_file): Add command-line
options.
* jit-recording.h: Within namespace gcc::jit...
(recording::context::add_command_line_option): New method.
(recording::context::append_command_line_options): New method.
(recording::context::m_command_line_options): New field.
* libgccjit++.h (gccjit::context::add_command_line_option): New
method.
* libgccjit.c (gcc_jit_context_add_command_line_option): New API
entrypoint.
* libgccjit.h (gcc_jit_context_add_command_line_option): New API
entrypoint.
(LIBGCCJIT_HAVE_gcc_jit_context_add_command_line_option): New
macro.
* libgccjit.map: Put existing symbols within LIBGCCJIT_ABI_0; add
LIBGCCJIT_ABI_1 and gcc_jit_context_add_command_line_option.
gcc/testsuite/ChangeLog:
PR jit/66628
* jit.dg/all-non-failing-tests.h: Add note about
test-extra-options.c.
* jit.dg/test-extra-options.c: New testcase.
From-SVN: r225205
Diffstat (limited to 'gcc/jit/docs/cp')
-rw-r--r-- | gcc/jit/docs/cp/topics/contexts.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/jit/docs/cp/topics/contexts.rst b/gcc/jit/docs/cp/topics/contexts.rst index 12a4e50..b26a29d 100644 --- a/gcc/jit/docs/cp/topics/contexts.rst +++ b/gcc/jit/docs/cp/topics/contexts.rst @@ -196,3 +196,22 @@ Integer options This is a thin wrapper around the C API :c:func:`gcc_jit_context_set_int_option`; the options have the same meaning. + +Additional command-line options +******************************* + +.. function:: void \ + gccjit::context::add_command_line_option (const char *optname) + + Add an arbitrary gcc command-line option to the context for use + when compiling. + + This is a thin wrapper around the C API + :c:func:`gcc_jit_context_add_command_line_option`. + + This entrypoint was added in :ref:`LIBGCCJIT_ABI_1`; you can test for + its presence using + + .. code-block:: c + + #ifdef LIBGCCJIT_HAVE_gcc_jit_context_add_command_line_option |