aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorBrooks Moses <brooks.moses@codesourcery.com>2007-04-04 18:10:17 +0000
committerBrooks Moses <brooks@gcc.gnu.org>2007-04-04 11:10:17 -0700
commit2c4c82dde6ab9fa9288285d4dce109aecb8c0f34 (patch)
treea69bb72c194533881416e2c0a7fd3c6791469eea /gcc/gcc.c
parent5bb43e6d24fcb5e66897d6f2a9e10298e8f5fdbc (diff)
downloadgcc-2c4c82dde6ab9fa9288285d4dce109aecb8c0f34.zip
gcc-2c4c82dde6ab9fa9288285d4dce109aecb8c0f34.tar.gz
gcc-2c4c82dde6ab9fa9288285d4dce109aecb8c0f34.tar.bz2
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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index b4f9abe..3d826d9 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;