diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-06 08:01:50 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-06 08:01:50 +0000 |
commit | ce52dcfad5e33b4bcc073f2c2b574b1dd2a7ca9c (patch) | |
tree | f29e81cbb2cd2ee92e51aa3fe03f522b99bf7988 | |
parent | c2e44e07cf7aec9d3827bff3aacaba40528f6467 (diff) | |
download | gcc-ce52dcfad5e33b4bcc073f2c2b574b1dd2a7ca9c.tar.gz |
* 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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcc.c | 16 |
2 files changed, 16 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fdf9a352bb..8f5899df428 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/gcc.c b/gcc/gcc.c index ad692eb5b32..693ad5dbd79 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, |