This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Very old driver bug [3.0.x, 2.95.x candidate]
On Tue, Oct 02, 2001 at 03:40:55PM -0700, Richard Henderson wrote:
> On Tue, Oct 02, 2001 at 12:51:55PM -0700, Zack Weinberg wrote:
> > * gcc.c (main): Set this_file_error if the appropriate
> > compiler for a language has not been installed.
>
> Ok everywhere.
Applied to 3.0 branch. The 2.95 equivalent is structured differently
(see patch below - note diff generated with -b) and so I must
bootstrap that too. And I'm not checking anything into the mainline
until the libjava bootstrap breakage is fixed.
zw
===================================================================
Index: gcc.c
--- gcc.c 2001/01/25 14:03:16 1.102.4.6
+++ gcc.c 2001/10/02 23:27:55
@@ -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,