Bart De VOS pointed out that removing absolute paths from the libc linker scripts is plainly wrong.
It dates from dawn ages of the original crosstool code, and is not well explained. At that time, binutils might not understand the sysroot stuff, and it was necessary to remove absolute paths in that case.
/trunk/scripts/build/libc/glibc.sh | 14 2 12 0 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
1 See http://gcc.gnu.org/PR21173
2 This is a fix for a last minute brown-bag bug with gcc-4.0.0
4 ------- Additional Comment #24 From CVS Commits 2005-04-25 14:03 [reply] -------
10 Changes by: dberlin@gcc.gnu.org 2005-04-25 14:02:38
13 gcc : ChangeLog tree-ssa-pre.c
16 2005-04-25 Daniel Berlin <dberlin@dberlin.org>
18 Fix PR tree-optimization/21173
20 * tree-ssa-pre.c (create_expression_by_pieces): Call unshare_expr
21 on things we pass to force_gimple_operand. Don't try to special
25 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.192&r2=2.7592.2.193
26 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-pre.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.65.4.2&r2=2.65.4.3
28 ===================================================================
29 RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
30 retrieving revision 2.65.4.2
31 retrieving revision 2.65.4.3
32 diff -u -r2.65.4.2 -r2.65.4.3
33 --- gcc/gcc/tree-ssa-pre.c 2005/04/17 23:40:31 2.65.4.2
34 +++ gcc/gcc/tree-ssa-pre.c 2005/04/25 14:02:31 2.65.4.3
37 folded = fold (build (TREE_CODE (expr), TREE_TYPE (expr),
39 - newexpr = force_gimple_operand (folded, &forced_stmts, false, NULL);
40 + newexpr = force_gimple_operand (unshare_expr (folded),
41 + &forced_stmts, false, NULL);
44 tsi = tsi_start (forced_stmts);
45 @@ -1372,14 +1373,8 @@
46 add_referenced_tmp_var (temp);
47 folded = fold (build (TREE_CODE (expr), TREE_TYPE (expr),
49 - /* If the generated operand is already GIMPLE min_invariant
50 - just use it instead of calling force_gimple_operand on it,
51 - since that may make it not invariant by copying it into an
53 - if (!is_gimple_min_invariant (genop1))
54 - newexpr = force_gimple_operand (folded, &forced_stmts, false, NULL);
57 + newexpr = force_gimple_operand (unshare_expr (folded),
58 + &forced_stmts, false, NULL);
61 tsi = tsi_start (forced_stmts);
65 13:16:54 (1.24 MB/s) - `-' saved [1303]