diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-19 15:43:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-19 15:43:22 +0000 |
commit | c04b6b3823c92bd06e1a6b33d1a05003f1760df7 (patch) | |
tree | 689a3a31c6e8de88d9e21e313b23a02153e122b9 /gcc/collect2.c | |
parent | d416abb494df912d22716d8882b7aceaab487fdf (diff) | |
download | gcc-c04b6b3823c92bd06e1a6b33d1a05003f1760df7.zip gcc-c04b6b3823c92bd06e1a6b33d1a05003f1760df7.tar.gz gcc-c04b6b3823c92bd06e1a6b33d1a05003f1760df7.tar.bz2 |
invoke.texi (-fwhopr): Document new optional jobs argument.
2010-05-19 Richard Guenther <rguenther@suse.de>
* doc/invoke.texi (-fwhopr): Document new optional jobs argument.
* common.opt (fwhopr=): New.
* opts.c (common_handle_option): Handle OPT_fwhopr.
* gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
* collect2.c (main): Match -fwhopr*.
* lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
Execute ltrans stage in parallel when jobs is bigger than 1.
From-SVN: r159573
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 0669a4e..42db3cb 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1207,7 +1207,7 @@ main (int argc, char **argv) use_verbose = true; lto_mode = LTO_MODE_LTO; } - else if (! strcmp (argv[i], "-fwhopr") && ! use_plugin) + else if (! strncmp (argv[i], "-fwhopr", 7) && ! use_plugin) { use_verbose = true; lto_mode = LTO_MODE_WHOPR; @@ -1482,7 +1482,8 @@ main (int argc, char **argv) break; case 'f': - if (strcmp (arg, "-flto") == 0 || strcmp (arg, "-fwhopr") == 0) + if (strcmp (arg, "-flto") == 0 + || strncmp (arg, "-fwhopr", 7) == 0) { #ifdef ENABLE_LTO /* Do not pass LTO flag to the linker. */ |