From 6a40fb21e1af1dc1eb1df6e4fa92dc3cbac15ac6 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sat, 6 Dec 2003 03:47:55 +0000 Subject: re PR driver/13211 (using -###, warns about unused linker file) 2003-12-05 Andrew Pinski PR driver/13211 * gcc.c (execute) Increment execution_count when returning early because verbose_only_flag is true. From-SVN: r74356 --- gcc/gcc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc/gcc.c') 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); -- cgit v1.1