g77spec.c (lang_specific_driver): Check n_infiles before appending args.
authorH.J. Lu <hjl@gnu.org>
Fri, 19 Jun 1998 20:02:11 +0000 (20:02 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 19 Jun 1998 20:02:11 +0000 (14:02 -0600)
        * g77spec.c (lang_specific_driver): Check n_infiles before
        appending args.

From-SVN: r20602

gcc/f/ChangeLog.egcs
gcc/f/g77spec.c

index adc0fb5e11ccd80c5b5c1a20c6a81d71e1b67386..70e55af4f387ff94ef2fc3855992d62a5898e374 100644 (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.
index 7c78018310623f16f7fad7db04769607214caceb..0500cb965d7f326fc02319ce87f8c9c9a9a5d433 100644 (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");