From ce52dcfad5e33b4bcc073f2c2b574b1dd2a7ca9c Mon Sep 17 00:00:00 2001 From: zack Date: Sat, 6 Oct 2001 08:01:50 +0000 Subject: [PATCH] * gcc.c (main): Set this_file_error if the appropriate 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 | 5 +++++ gcc/gcc.c | 16 +++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fdf9a3..8f5899d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-10-06 Zack Weinberg + + * gcc.c (main): Set this_file_error if the appropriate + compiler for a language has not been installed. + 2001-10-06 Ulrich Weigand * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set. diff --git a/gcc/gcc.c b/gcc/gcc.c index ad692eb..693ad5d 100644 --- 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, -- 2.7.4