From 48228ca39bb026bca4b3e99b04ab4fc58ddad832 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 28 Oct 2004 18:22:55 +0000 Subject: [PATCH] [taken from gcc-2.95.3-latest-cvs] fix bug with error-file not being noted in one case. git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9593 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- gcc/gcc/gcc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/gcc/gcc.c b/gcc/gcc/gcc.c index d4dbf5ea9d..e21169e643 100644 --- a/gcc/gcc/gcc.c +++ b/gcc/gcc/gcc.c @@ -5040,9 +5040,13 @@ main (argc, argv) int len; if (cp->spec[0][0] == '#') + { error ("%s: %s compiler not installed on this system", input_filename, &cp->spec[0][1]); - + this_file_error = 1; + } + else + { input_basename = input_filename; for (p = input_filename; *p; p++) if (IS_DIR_SEPARATOR (*p)) @@ -5082,6 +5086,7 @@ main (argc, argv) } if (value < 0) this_file_error = 1; + } } /* If this file's name does not contain a recognized suffix,