From 2c4c82dde6ab9fa9288285d4dce109aecb8c0f34 Mon Sep 17 00:00:00 2001 From: Brooks Moses Date: Wed, 4 Apr 2007 18:10:17 +0000 Subject: [PATCH] re PR driver/31353 (gcc --help=target gives a linker error.) PR other/31353 * gcc.c (main): Do not run the linker if print_subprocess_help indicates that it shouldn't be run. From-SVN: r123498 --- gcc/ChangeLog | 7 +++++++ gcc/gcc.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ace008d03a4..c16fc4dbdcf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-04-04 Brooks Moses + + PR other/31353 + * gcc.c (main): Do not run the linker if + print_subprocess_help indicates that it shouldn't be + run. + 2007-04-04 Brooks Moses PR doc/31355 diff --git a/gcc/gcc.c b/gcc/gcc.c index b4f9abebc10..3d826d94d68 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -6692,7 +6692,7 @@ main (int argc, char **argv) /* Run ld to link all the compiler output files. */ - if (num_linker_inputs > 0 && error_count == 0) + if (num_linker_inputs > 0 && error_count == 0 && print_subprocess_help < 2) { int tmp = execution_count; -- 2.30.2