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
This commit is contained in:
H.J. Lu 1998-06-19 20:02:11 +00:00 committed by Jeff Law
parent 960b4ee6e1
commit f8d58786f4
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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");