* gcc.c (main): Set this_file_error if the appropriate
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Oct 2001 08:01:50 +0000 (08:01 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Oct 2001 08:01:50 +0000 (08:01 +0000)
compiler for a language has not been installed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46049 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index 9fdf9a3..8f5899d 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 ad692eb..693ad5d 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,