aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2003-12-06 03:47:55 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2003-12-05 19:47:55 -0800
commit6a40fb21e1af1dc1eb1df6e4fa92dc3cbac15ac6 (patch)
tree7ffbff45d82ad3c2e9c0cf0609f22aca65d1415c /gcc/gcc.c
parent1c9ca54d323e565bbabc8606313b39caeb265ac8 (diff)
downloadgcc-6a40fb21e1af1dc1eb1df6e4fa92dc3cbac15ac6.zip
gcc-6a40fb21e1af1dc1eb1df6e4fa92dc3cbac15ac6.tar.gz
gcc-6a40fb21e1af1dc1eb1df6e4fa92dc3cbac15ac6.tar.bz2
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
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);