re PR c/4988 (--target-help emits cc1 printout twice)
authorNeil Booth <neil@daikokuya.demon.co.uk>
Mon, 3 Dec 2001 22:36:51 +0000 (22:36 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 3 Dec 2001 22:36:51 +0000 (22:36 +0000)
PR c/4988
* (process_command): Don't add a preprocessor option for
--help and --target-help; cc1 is enough.

From-SVN: r47565

gcc/ChangeLog
gcc/gcc.c

index 16ad5fe713c4fd09c9f1e286b5ba18aaa9b4a424..a3db409c00ffa852598d4a587ddd7726c22ec9d0 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       PR c/4988
+       * (process_command): Don't add a preprocessor option for
+       --help and --target-help; cc1 is enough.
+
 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * c-decl.c (grokdeclarator): Use ISO word.
index 03959471baebaf2a3ee1a4291b856808dd8dad21..cb2e47bc40b32a549e684677a7e29d58bcfcf539 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3310,7 +3310,6 @@ process_command (argc, argv)
          n_infiles++;
          n_switches++;
 
-         add_preprocessor_option ("--help", 6);
          add_assembler_option ("--help", 6);
          add_linker_option ("--help", 6);
        }
@@ -3323,7 +3322,6 @@ process_command (argc, argv)
           n_infiles++;
           n_switches++;
 
-          add_preprocessor_option ("--target-help", 13);
           add_assembler_option ("--target-help", 13);
           add_linker_option ("--target-help", 13);
         }