Commit 6a40fb21 by Andrew Pinski Committed by Andrew Pinski

re PR driver/13211 (using -###, warns about unused linker file)

2003-12-05  Andrew Pinski <pinskia@physics.uc.edu>

        PR driver/13211
        * gcc.c (execute) Increment execution_count when returning
        early because verbose_only_flag is true.

From-SVN: r74356
parent 1c9ca54d
2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
PR driver/13211
* gcc.c (execute) Increment execution_count when returning
early because verbose_only_flag is true.
2003-12-05 Per Bothner <pbothner@apple.com> 2003-12-05 Per Bothner <pbothner@apple.com>
* cppfiles.c (file_hash_hash): New static function. * cppfiles.c (file_hash_hash): New static function.
......
...@@ -2684,7 +2684,14 @@ execute (void) ...@@ -2684,7 +2684,14 @@ execute (void)
} }
fflush (stderr); fflush (stderr);
if (verbose_only_flag != 0) if (verbose_only_flag != 0)
return 0; {
/* verbose_only_flag should act as if the spec was
executed, so increment execution_count before
returning. Theis prevent spurious warnings about
unused linker input files, etc. */
execution_count++;
return 0;
}
#ifdef DEBUG #ifdef DEBUG
notice ("\nGo ahead? (y or n) "); notice ("\nGo ahead? (y or n) ");
fflush (stderr); fflush (stderr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment