OSDN Git Service

PR other/31353
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2007 18:10:17 +0000 (18:10 +0000)
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2007 18:10:17 +0000 (18:10 +0000)
* gcc.c (main): Do not run the linker if
print_subprocess_help indicates that it shouldn't be
run.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123498 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index ace008d..c16fc4d 100644 (file)
@@ -1,5 +1,12 @@
 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
        * doc/invoke.texi (--help=): Document <languages> value, fix
        formatting in tables of values.
index b4f9abe..3d826d9 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;