public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/66628] New: jit: Provide a way to add arbitrary options to the toplev "command line"
@ 2015-06-22 15:06 dmalcolm at gcc dot gnu.org
  2015-06-30 19:27 ` [Bug jit/66628] " dmalcolm at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2015-06-22 15:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66628
           Summary: jit: Provide a way to add arbitrary options to the
                    toplev "command line"
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
            Blocks: 66627
  Target Milestone: ---

Experimenting with adding arbitrary command-line options to toplev::main from
libgccjit requires recompiling libgccjit each time; we should expose an API for
doing this, perhaps with a big caveat that only some options can ever be
supported.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66627
[Bug 66627] Tracker bug for jit bugs affecting ravi


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

* [Bug jit/66628] jit: Provide a way to add arbitrary options to the toplev "command line"
  2015-06-22 15:06 [Bug jit/66628] New: jit: Provide a way to add arbitrary options to the toplev "command line" dmalcolm at gcc dot gnu.org
@ 2015-06-30 19:27 ` dmalcolm at gcc dot gnu.org
  2015-07-01 14:32 ` dmalcolm at gcc dot gnu.org
  2015-07-01 15:08 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2015-06-30 19:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Tue Jun 30 19:27:19 2015
New Revision: 225205

URL: https://gcc.gnu.org/viewcvs?rev=225205&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/jit/docs/topics/compatibility.rst
    trunk/gcc/testsuite/jit.dg/test-extra-options.c
Modified:
    trunk/gcc/jit/ChangeLog
    trunk/gcc/jit/docs/_build/texinfo/libgccjit.texi
    trunk/gcc/jit/docs/cp/topics/contexts.rst
    trunk/gcc/jit/docs/topics/contexts.rst
    trunk/gcc/jit/docs/topics/index.rst
    trunk/gcc/jit/jit-playback.c
    trunk/gcc/jit/jit-recording.c
    trunk/gcc/jit/jit-recording.h
    trunk/gcc/jit/libgccjit++.h
    trunk/gcc/jit/libgccjit.c
    trunk/gcc/jit/libgccjit.h
    trunk/gcc/jit/libgccjit.map
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/jit.dg/all-non-failing-tests.h


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

* [Bug jit/66628] jit: Provide a way to add arbitrary options to the toplev "command line"
  2015-06-22 15:06 [Bug jit/66628] New: jit: Provide a way to add arbitrary options to the toplev "command line" dmalcolm at gcc dot gnu.org
  2015-06-30 19:27 ` [Bug jit/66628] " dmalcolm at gcc dot gnu.org
@ 2015-07-01 14:32 ` dmalcolm at gcc dot gnu.org
  2015-07-01 15:08 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2015-07-01 14:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Wed Jul  1 14:31:48 2015
New Revision: 225253

URL: https://gcc.gnu.org/viewcvs?rev=225253&root=gcc&view=rev
Log:
PR jit/66628: add gcc_jit_context_add_command_line_option

Backport of r225205 (adb2df5592cdf8e70aa44c0f3c447da1d0134f4c)
from trunk

gcc/jit/ChangeLog:
        Backport from mainline r225205
        2015-06-30  David Malcolm  <dmalcolm@redhat.com>

        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:
        Backport from mainline r225205
        2015-06-30  David Malcolm  <dmalcolm@redhat.com>

        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.

Added:
    branches/gcc-5-branch/gcc/jit/docs/topics/compatibility.rst
    branches/gcc-5-branch/gcc/testsuite/jit.dg/test-extra-options.c
Modified:
    branches/gcc-5-branch/gcc/jit/ChangeLog
    branches/gcc-5-branch/gcc/jit/docs/_build/texinfo/libgccjit.texi
    branches/gcc-5-branch/gcc/jit/docs/cp/topics/contexts.rst
    branches/gcc-5-branch/gcc/jit/docs/topics/contexts.rst
    branches/gcc-5-branch/gcc/jit/docs/topics/index.rst
    branches/gcc-5-branch/gcc/jit/jit-playback.c
    branches/gcc-5-branch/gcc/jit/jit-recording.c
    branches/gcc-5-branch/gcc/jit/jit-recording.h
    branches/gcc-5-branch/gcc/jit/libgccjit++.h
    branches/gcc-5-branch/gcc/jit/libgccjit.c
    branches/gcc-5-branch/gcc/jit/libgccjit.h
    branches/gcc-5-branch/gcc/jit/libgccjit.map
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/jit.dg/all-non-failing-tests.h


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

* [Bug jit/66628] jit: Provide a way to add arbitrary options to the toplev "command line"
  2015-06-22 15:06 [Bug jit/66628] New: jit: Provide a way to add arbitrary options to the toplev "command line" dmalcolm at gcc dot gnu.org
  2015-06-30 19:27 ` [Bug jit/66628] " dmalcolm at gcc dot gnu.org
  2015-07-01 14:32 ` dmalcolm at gcc dot gnu.org
@ 2015-07-01 15:08 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2015-07-01 15:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Fixed in trunk as r225205.
Fixed in gcc-5-branch (for gcc 5.2) as r225253.
Resolving as fixed.


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

end of thread, other threads:[~2015-07-01 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 15:06 [Bug jit/66628] New: jit: Provide a way to add arbitrary options to the toplev "command line" dmalcolm at gcc dot gnu.org
2015-06-30 19:27 ` [Bug jit/66628] " dmalcolm at gcc dot gnu.org
2015-07-01 14:32 ` dmalcolm at gcc dot gnu.org
2015-07-01 15:08 ` 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).