This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
unreviewed -frepo related collect patch
- To: gcc-patches at gcc dot gnu dot org
- Subject: unreviewed -frepo related collect patch
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Wed, 30 May 2001 16:21:05 +0100
- Organization: Codesourcery LLC
Hi,
I attach a patch previously posted bundled with several
other related ones.
There is a problem with -frepo and collect. The toplevel
gcc will pass down its search path in environment variables COMPILER_PATH
and LIBRARY_PATH. tlink will pass all the original search paths directly
as they are in the .rpo file. The subgcc will merge these and either
1) complain about system search order changing (when that patch goes in)
2) have the wrong search order
built & tested on i686-pc-linux-gnu, ok for mainline?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2001-05-08 Nathan Sidwell <nathan@codesourcery.com>
* tlink.c (recompile_files): Remove COMPILER_PATH and
LIBRARY_PATH from the environment.
Index: tlink.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tlink.c,v
retrieving revision 1.34
diff -c -3 -p -r1.34 tlink.c
*** tlink.c 2001/05/04 14:36:38 1.34
--- tlink.c 2001/05/08 15:47:03
*************** recompile_files ()
*** 495,500 ****
--- 495,503 ----
{
file *f;
+ putenv ("COMPILER_PATH");
+ putenv ("LIBRARY_PATH");
+
while ((f = file_pop ()) != NULL)
{
char *line, *command;