aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>1998-06-19 20:02:11 +0000
committerJeff Law <law@gcc.gnu.org>1998-06-19 14:02:11 -0600
commitf8d58786f45e41ff97232a26843eaa4178c90bc1 (patch)
treed119a22988536105c9b48ddcc868d5ecfe80ccf1 /gcc/f
parent960b4ee6e13e9a12e5b128885f7e4c2e12795da6 (diff)
downloadgcc-f8d58786f45e41ff97232a26843eaa4178c90bc1.zip
gcc-f8d58786f45e41ff97232a26843eaa4178c90bc1.tar.gz
gcc-f8d58786f45e41ff97232a26843eaa4178c90bc1.tar.bz2
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
Diffstat (limited to 'gcc/f')
-rw-r--r--gcc/f/ChangeLog.egcs5
-rw-r--r--gcc/f/g77spec.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/f/ChangeLog.egcs b/gcc/f/ChangeLog.egcs
index adc0fb5..70e55af 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 <rth@cygnus.com>
* com.c (lang_init_options): New function.
diff --git a/gcc/f/g77spec.c b/gcc/f/g77spec.c
index 7c78018..0500cb9 100644
--- a/gcc/f/g77spec.c
+++ b/gcc/f/g77spec.c
@@ -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");