From f8d58786f45e41ff97232a26843eaa4178c90bc1 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 19 Jun 1998 20:02:11 +0000 Subject: [PATCH] g77spec.c (lang_specific_driver): Check n_infiles before appending args. * g77spec.c (lang_specific_driver): Check n_infiles before appending args. From-SVN: r20602 --- gcc/f/ChangeLog.egcs | 5 +++++ gcc/f/g77spec.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/f/ChangeLog.egcs b/gcc/f/ChangeLog.egcs index adc0fb5e11c..70e55af4f38 100644 --- a/gcc/f/ChangeLog.egcs +++ b/gcc/f/ChangeLog.egcs @@ -1,3 +1,8 @@ +Fri Jun 19 07:54:40 1998 H.J. Lu (hjl@gnu.org) + + * g77spec.c (lang_specific_driver): Check n_infiles before + appending args. + Sun Jun 7 14:04:34 1998 Richard Henderson * com.c (lang_init_options): New function. diff --git a/gcc/f/g77spec.c b/gcc/f/g77spec.c index 7c780183106..0500cb965d7 100644 --- a/gcc/f/g77spec.c +++ b/gcc/f/g77spec.c @@ -541,7 +541,7 @@ Report bugs to .\n"); break; } } - else if (add_version_magic && verbose) + else if (n_infiles && add_version_magic && verbose) { append_arg ("-c"); append_arg ("-xf77-version");