'strip out ".." from gcc search paths' causes bootstrap failures
jeroen dobbelaere
jeroen.dobbelaere@acunia.com
Fri Jul 19 05:59:00 GMT 2002
Aaargh, copy-past error :
jeroen dobbelaere wrote:
[...]
> Another change in behavior :
>
> 'gcc/gcc/gcc.c' checks for an existing 'specs' file :
>
>
> specs_file = find_a_file (&startfile_prefixes, "./specs", R_OK);
The original code is this :
specs_file = find_a_file (&startfile_prefixes, "specs", R_OK);
>
> /* Read the specs file unless it is a default one. */
> if (specs_file != 0 && strcmp (specs_file, "specs"))
> read_specs (specs_file, TRUE);
> else
> init_spec ();
>
> If it finds one, this one will be choosen, if not it will use the
> 'built-in' specs.
> BUT : because of the stripping of './', a specs file in the current
> directory
> will result in the built-in being used... ("./specs" is returned as
> "specs" with the
> above patch)
>
> Greetings,
--
Jeroen Dobbelaere
Embedded Software Engineer
ACUNIA Embedded Solutions
http://www.acunia.com/aes
More information about the Gcc-patches
mailing list