This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 'strip out ".." from gcc search paths' causes bootstrap failures
- From: jeroen dobbelaere <jeroen dot dobbelaere at acunia dot com>
- To: jeroen dobbelaere <jeroen dot dobbelaere at acunia dot com>
- Cc: amodra at bigpond dot net dot au, rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Jul 2002 14:36:45 +0200
- Subject: Re: 'strip out ".." from gcc search paths' causes bootstrap failures
- Organization: ACUNIA
- References: <3D3805E7.9060006@acunia.com> <3D3806D5.3010204@acunia.com>
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