Update all samples to the latest set of options.
Update some samples to use newer features.
Add patches for the uClibc-20080801 snapshot to be able to build with gcc-4.3.
Add a patch against glibc-2.7 to allow building PPC with latest kernel headers.
Add a patch to gcc to use an alternate unwinding when built against uClibc (after a private explanation/request by Daniel Egger <daniel@eggers-club.de>)
/trunk/patches/glibc/2.7/230-powerpc-private_futex.patch | 15 15 0 0 +
/trunk/patches/uClibc/20080801/300-fix-asm.patch | 175 175 0 0 +++++++++
/trunk/patches/uClibc/20080801/100-ifaddrs.patch | 190 190 0 0 +++++++++
/trunk/patches/uClibc/20080801/200-mips-typeof.patch | 112 112 0 0 ++++++
/trunk/patches/gcc/4.3.1/330-unwind-for-uClibc.patch | 25 25 0 0 +
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 17 10 7 0 +
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 14 11 3 0 +
/trunk/samples/x86_64-unknown-linux-uclibc/uClibc-20080801.config | 232 232 0 0 ++++++++++++
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 34 21 13 0 +-
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 10 7 3 0 +
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/mips-unknown-linux-uclibc/uClibc-20080801.config | 249 249 0 0 ++++++++++++
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 38 23 15 0 +-
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 10 4 0 +
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/i586-geode-linux-uclibc/uClibc-20080801.config | 261 261 0 0 +++++++++++++
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 32 20 12 0 ++
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 12 9 3 0 +
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 16 10 6 0 +
25 files changed, 1428 insertions(+), 84 deletions(-)
1 diff -durN gcc-3.4.6.orig/gcc/config/sh/sh.c gcc-3.4.6/gcc/config/sh/sh.c
2 --- gcc-3.4.6.orig/gcc/config/sh/sh.c 2004-09-03 08:51:30.000000000 +0200
3 +++ gcc-3.4.6/gcc/config/sh/sh.c 2007-08-15 23:01:48.000000000 +0200
6 this = FUNCTION_ARG (cum, Pmode, ptr_type_node, 1);
8 + /* In PIC case, we set PIC register to compute the target address. We
9 + can use a scratch register to save and restore the original value
10 + except for SHcompact. For SHcompact, use stack. */
11 + if (flag_pic && TARGET_SHCOMPACT)
13 + push (PIC_OFFSET_TABLE_REGNUM);
14 + emit_insn (gen_GOTaddr2picreg ());
17 /* For SHcompact, we only have r0 for a scratch register: r1 is the
18 static chain pointer (even if you can't have nested virtual functions
19 right now, someone might implement them sometime), and the rest of the
20 @@ -9189,8 +9198,24 @@
21 assemble_external (function);
22 TREE_USED (function) = 1;
24 + /* We can use scratch1 to save and restore the original value of
25 + PIC register except for SHcompact. */
26 + if (flag_pic && ! TARGET_SHCOMPACT)
28 + emit_move_insn (scratch1,
29 + gen_rtx_REG (Pmode, PIC_OFFSET_TABLE_REGNUM));
30 + emit_insn (gen_GOTaddr2picreg ());
32 funexp = XEXP (DECL_RTL (function), 0);
33 emit_move_insn (scratch2, funexp);
36 + if (! TARGET_SHCOMPACT)
37 + emit_move_insn (gen_rtx_REG (Pmode, PIC_OFFSET_TABLE_REGNUM),
40 + pop (PIC_OFFSET_TABLE_REGNUM);
42 funexp = gen_rtx_MEM (FUNCTION_MODE, scratch2);
43 sibcall = emit_call_insn (gen_sibcall (funexp, const0_rtx, NULL_RTX));
44 SIBLING_CALL_P (sibcall) = 1;