gcc.c (main): Set this_file_error if the appropriate compiler for a language has...
authorZack Weinberg <zack@codesourcery.com>
Sat, 6 Oct 2001 08:01:50 +0000 (08:01 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 6 Oct 2001 08:01:50 +0000 (08:01 +0000)
* gcc.c (main): Set this_file_error if the appropriate
compiler for a language has not been installed.

From-SVN: r46049

gcc/ChangeLog
gcc/gcc.c

index 9fdf9a352bbb1fc28046e10cfa059e11df0f3501..8f5899df4281afbe14b9c534c011d03e7b876167 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-06  Zack Weinberg  <zack@codesourcery.com>
+
+       * gcc.c (main): Set this_file_error if the appropriate
+       compiler for a language has not been installed.
+
 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
  
         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
index ad692eb5b32a8aa5d099b6e392ddd2e5bd0dea8f..693ad5dbd7960b0fe83674a8d2cf40ff3f48a608 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5964,11 +5964,17 @@ main (argc, argv)
          /* Ok, we found an applicable compiler.  Run its spec.  */
 
          if (input_file_compiler->spec[0] == '#')
-           error ("%s: %s compiler not installed on this system",
-                  input_filename, &input_file_compiler->spec[1]);
-         value = do_spec (input_file_compiler->spec);
-         if (value < 0)
-           this_file_error = 1;
+           {
+             error ("%s: %s compiler not installed on this system",
+                    input_filename, &input_file_compiler->spec[1]);
+             this_file_error = 1;
+           }
+         else
+           {
+             value = do_spec (input_file_compiler->spec);
+             if (value < 0)
+               this_file_error = 1;
+           }
        }
 
       /* If this file's name does not contain a recognized suffix,