This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A patch for g77spec.c
- To: burley at gnu dot org
- Subject: A patch for g77spec.c
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 19 Jun 1998 10:57:06 -0700 (PDT)
- Cc: egcs-patches at cygnus dot com
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");