]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/jit/jit-playback.cc
jit: supply MULTILIB_DEFAULTS as arguments when invoking driver
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 23 Jul 2015 21:19:07 +0000 (21:19 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 23 Jul 2015 21:19:07 +0000 (21:19 +0000)
commiteb3982c17ef6db63b43eda4b346f34d4a2bd2465
treed51fc6b3cfd7debaae8e1e52fb0624a8de2c0bdf
parentd37f946ace661906c628b482a0f9d5bfb40d3064
jit: supply MULTILIB_DEFAULTS as arguments when invoking driver

gcc/jit/ChangeLog:
* jit-playback.c (invoke_driver): Convert local "argvec"
to an auto_argvec, so that it owns copies of the strings,
rather than borrows them, updating ADD_ARG to use xstrdup
and special-casing the NULL terminator to avoid
xstrdup (NULL).  Call add_multilib_driver_arguments at the front
of the arguments.
(MULTILIB_DEFAULTS): Provide a default definition.
(multilib_defaults_raw): New constant array.
(gcc::jit::playback::context::add_multilib_driver_arguments): New
method.
* jit-playback.h
(gcc::jit::playback::context::add_multilib_driver_arguments): New
method.
* docs/internals/test-hello-world.exe.log.txt: Update.
* docs/_build/texinfo/libgccjit.texi: Regenerate.

From-SVN: r226126
gcc/jit/ChangeLog
gcc/jit/docs/_build/texinfo/libgccjit.texi
gcc/jit/docs/internals/test-hello-world.exe.log.txt
gcc/jit/jit-playback.c
gcc/jit/jit-playback.h