aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/jit-playback.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-07-23 21:19:07 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-07-23 21:19:07 +0000
commiteb3982c17ef6db63b43eda4b346f34d4a2bd2465 (patch)
treed51fc6b3cfd7debaae8e1e52fb0624a8de2c0bdf /gcc/jit/jit-playback.h
parentd37f946ace661906c628b482a0f9d5bfb40d3064 (diff)
downloadgcc-eb3982c17ef6db63b43eda4b346f34d4a2bd2465.zip
gcc-eb3982c17ef6db63b43eda4b346f34d4a2bd2465.tar.gz
gcc-eb3982c17ef6db63b43eda4b346f34d4a2bd2465.tar.bz2
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
Diffstat (limited to 'gcc/jit/jit-playback.h')
-rw-r--r--gcc/jit/jit-playback.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h
index 13cc748..1d7de17 100644
--- a/gcc/jit/jit-playback.h
+++ b/gcc/jit/jit-playback.h
@@ -272,6 +272,9 @@ protected:
bool shared,
bool run_linker);
+ void
+ add_multilib_driver_arguments (vec <char *> *argvec);
+
result *
dlopen_built_dso ();