diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-01-04 00:52:50 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-01-03 16:52:50 -0800 |
commit | f0d61983a5fe28616abf24c5029dfa70b7b6930c (patch) | |
tree | 7c32ff53348a86163c82ed7b2373dd5c80fd34ab /lto-plugin | |
parent | 5ceab7f10030eb3f002fcff3b8f904a849a075da (diff) | |
download | gcc-f0d61983a5fe28616abf24c5029dfa70b7b6930c.zip gcc-f0d61983a5fe28616abf24c5029dfa70b7b6930c.tar.gz gcc-f0d61983a5fe28616abf24c5029dfa70b7b6930c.tar.bz2 |
Pass -m* and -v to -plugin-opt
gcc/
2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
PR lto/42520
* gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
lto-plugin/
2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
PR lto/42520
* lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
if -v is passed.
From-SVN: r155601
Diffstat (limited to 'lto-plugin')
-rw-r--r-- | lto-plugin/ChangeLog | 6 | ||||
-rw-r--r-- | lto-plugin/lto-plugin.c | 15 |
2 files changed, 19 insertions, 2 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index 77a8313..4848e27 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,9 @@ +2010-01-03 H.J. Lu <hongjiu.lu@intel.com> + + PR lto/42520 + * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command + if -v is passed. + 2009-12-05 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/42306 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 4a8a0ff..2fb4f2a 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -369,7 +369,7 @@ add_output_files (FILE *f) static void exec_lto_wrapper (char *argv[]) { - int t; + int t, i; int status; char *at_args; FILE *args; @@ -394,13 +394,24 @@ exec_lto_wrapper (char *argv[]) at_args = concat ("@", arguments_file_name, NULL); check (at_args, LDPL_FATAL, "could not allocate"); + for (i = 1; argv[i]; i++) + { + char *a = argv[i]; + if (a[0] == '-' && a[1] == 'v' && a[2] == '\0') + { + for (i = 0; argv[i]; i++) + fprintf (stderr, "%s ", argv[i]); + fprintf (stderr, "\n"); + break; + } + } + new_argv[0] = argv[0]; new_argv[1] = at_args; new_argv[2] = NULL; if (debug) { - int i; for (i = 0; new_argv[i]; i++) fprintf (stderr, "%s ", new_argv[i]); fprintf (stderr, "\n"); |