This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 'strip out ".." from gcc search paths' causes bootstrap failures


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]