]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR driver/31353 (gcc --help=target gives a linker error.)
authorBrooks Moses <brooks.moses@codesourcery.com>
Wed, 4 Apr 2007 18:10:17 +0000 (18:10 +0000)
committerBrooks Moses <brooks@gcc.gnu.org>
Wed, 4 Apr 2007 18:10:17 +0000 (11:10 -0700)
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
gcc/gcc.c

index ace008d03a421bef33fcfcc3150498e7f7116b84..c16fc4dbdcf1dad5694ef41ce66d71ed2d942176 100644 (file)
@@ -1,3 +1,10 @@
+2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       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  <brooks.moses@codesourcery.com>
 
        PR doc/31355
index b4f9abebc10493cf45a145dc0553a226b3f3ab08..3d826d94d680f3af02896481dd77ea6b251e2f22 100644 (file)
--- 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;