aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 7b9ea63..cebf876 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2684,7 +2684,14 @@ execute (void)
}
fflush (stderr);
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
notice ("\nGo ahead? (y or n) ");
fflush (stderr);