This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for g77spec.c


Hi,

This patch fixes

# g77 -v



-- 
H.J. Lu (hjl@gnu.org)
----
Fri Jun 19 07:54:40 1998  H.J. Lu  (hjl@gnu.org)

	* g77spec.c (lang_specific_driver): Check n_infiles before
	appending args.

Index: g77spec.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/f/g77spec.c,v
retrieving revision 1.1.1.5
diff -u -p -r1.1.1.5 g77spec.c
--- g77spec.c	1998/06/16 14:32:44	1.1.1.5
+++ g77spec.c	1998/06/19 17:49:52
@@ -541,7 +541,7 @@ Report bugs to <egcs-bugs@cygnus.org>.\n
 	  break;
 	}
     }
-  else if (add_version_magic && verbose)
+  else if (n_infiles && add_version_magic && verbose)
     {
       append_arg ("-c");
       append_arg ("-xf77-version");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]