summaryrefslogtreecommitdiff
path: root/gcc/jit/jit-playback.h
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-23 21:19:07 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-23 21:19:07 +0000
commit8ece6e0e3916138d300fc40bf2d30e0d254fdea3 (patch)
treed51fc6b3cfd7debaae8e1e52fb0624a8de2c0bdf /gcc/jit/jit-playback.h
parentec361a0c685920ba53f325b8967aedf57ce9721c (diff)
downloadgcc-8ece6e0e3916138d300fc40bf2d30e0d254fdea3.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226126 138bc75d-0d04-0410-961f-82ee72b054a4
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 13cc748135f..1d7de17ca1c 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 ();