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 # See http://gcc.gnu.org/PR7383, http://www.kegel.com/xgcc3/ppc405erratum77.html
4 diff -aur gcc-20020722.orig/gcc/config/rs6000/rs6000.h gcc-20020722/gcc/config/rs6000/rs6000.h
5 --- gcc-20020722.orig/gcc/config/rs6000/rs6000.h Thu Jul 25 09:32:21 2002
6 +++ gcc-20020722/gcc/config/rs6000/rs6000.h Thu Jul 25 09:34:45 2002
8 %{mcpu=rsc1: -D_ARCH_PWR} \
9 %{mcpu=401: -D_ARCH_PPC} \
10 %{mcpu=403: -D_ARCH_PPC} \
11 -%{mcpu=405: -D_ARCH_PPC} \
12 +%{mcpu=405: -D_ARCH_PPC -D__PPC405__} \
13 %{mcpu=505: -D_ARCH_PPC} \
14 %{mcpu=601: -D_ARCH_PPC -D_ARCH_PWR} \
15 %{mcpu=602: -D_ARCH_PPC} \
16 diff -aur gcc-20020722.orig/libjava/sysdep/powerpc/locks.h gcc-20020722/libjava/sysdep/powerpc/locks.h
17 --- gcc-20020722.orig/libjava/sysdep/powerpc/locks.h Thu Jul 25 09:32:30 2002
18 +++ gcc-20020722/libjava/sysdep/powerpc/locks.h Thu Jul 25 11:39:13 2002
20 #ifndef __SYSDEP_LOCKS_H__
21 #define __SYSDEP_LOCKS_H__
24 +// workaround for PPC405 erratum #77 - 07/18/02 JRO, dank, NN. References:
25 +// http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/89DED00DEBFF54BF87256A8000491BA2/$file/405CR_C_errata_1_2.pdf
26 +// http://ppc.bkbits.net:8080/linuxppc_2_4_devel/cset@1.489
27 +// http://www.kegel.com/xgcc3/ppc405erratum77.html
28 +// FIXME: using dbct instead of sync would be faster
29 +#define __LIBGCJ_PPC405_ERR77_SYNC "sync \n\t"
31 +#define __LIBGCJ_PPC405_ERR77_SYNC
34 typedef size_t obj_addr_t; /* Integer type big enough for object */
41 + __LIBGCJ_PPC405_ERR77_SYNC
49 + __LIBGCJ_PPC405_ERR77_SYNC
53 diff -aur gcc-20020722.orig/libstdc++-v3/config/cpu/powerpc/bits/atomicity.h gcc-20020722/libstdc++-v3/config/cpu/powerpc/bits/atomicity.h
54 --- gcc-20020722.orig/libstdc++-v3/config/cpu/powerpc/bits/atomicity.h Thu Jul 25 09:32:31 2002
55 +++ gcc-20020722/libstdc++-v3/config/cpu/powerpc/bits/atomicity.h Thu Jul 25 09:34:45 2002
58 typedef int _Atomic_word;
61 +// workaround for PPC405 erratum #77 - 07/18/02 JRO & dank. References:
62 +// http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/89DED00DEBFF54BF87256A8000491BA2/$file/405CR_C_errata_1_2.pdf
63 +// http://ppc.bkbits.net:8080/linuxppc_2_4_devel/cset@1.489
64 +// http://www.kegel.com/xgcc3/ppc405erratum77.html
65 +// FIXME: using dbct instead of sync would be faster
66 +#define __LIBSTDCPP_PPC405_ERR77_SYNC "sync \n\t"
68 +#define __LIBSTDCPP_PPC405_ERR77_SYNC
71 static inline _Atomic_word
72 __attribute__ ((__unused__))
73 __exchange_and_add (volatile _Atomic_word* __mem, int __val)
77 "add%I3 %1,%0,%3 \n\t"
78 + __LIBSTDCPP_PPC405_ERR77_SYNC
81 "/* End exchange & add */"
85 "add%I2 %0,%0,%2 \n\t"
86 + __LIBSTDCPP_PPC405_ERR77_SYNC
89 "/* End atomic add */"
91 "/* Inline always swap */\n"
94 + __LIBSTDCPP_PPC405_ERR77_SYNC
97 "/* End always swap */"
102 + __LIBSTDCPP_PPC405_ERR77_SYNC
103 "stwcx. %2,0,%1 \n\t"