From eb3982c17ef6db63b43eda4b346f34d4a2bd2465 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 23 Jul 2015 21:19:07 +0000 Subject: 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/jit-playback.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/jit/jit-playback.h') 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 *argvec); + result * dlopen_built_dso (); -- cgit v1.1