1 diff -ruN gcc-4.2.0/configure gcc-4.2.0.patched/configure
2 --- gcc-4.2.0/configure 2007-05-13 20:19:11.000000000 -0700
3 +++ gcc-4.2.0.patched/configure 2007-06-23 10:27:35.000000000 -0700
6 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
9 + noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
10 + noconfigdirs="$noconfigdirs target-libstdc++-v3"
12 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
13 noconfigdirs="$noconfigdirs ${libgcj}"
14 noconfigdirs="$noconfigdirs target-examples"
17 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
18 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
19 + noconfigdirs="$noconfigdirs target-libstdc++-v3"
22 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
23 @@ -1494,6 +1499,10 @@
25 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
28 + noconfigdirs="$noconfigdirs ${libgcj}"
29 + noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3"
32 noconfigdirs="$noconfigdirs ${libgcj}"
34 diff -ruN gcc-4.2.0/gcc/config/arm/t-arm-elf gcc-4.2.0.patched/gcc/config/arm/t-arm-elf
35 --- gcc-4.2.0/gcc/config/arm/t-arm-elf 2006-11-06 04:13:53.000000000 -0800
36 +++ gcc-4.2.0.patched/gcc/config/arm/t-arm-elf 2007-06-23 10:27:35.000000000 -0700
41 +# build a bunch of specialized versions of libcc for particular cores
42 +MULTILIB_OPTIONS += mcpu=arm7tdmi/mcpu=arm9tdmi/mcpu=arm920t/mcpu=arm926ej-s/mcpu=arm1136j-s/mcpu=arm1136jf-s/mcpu=arm1176jz-s/mcpu=arm1176jzf-s/mcpu=xscale/mcpu=mpcore/march=armv4/march=armv4t/march=armv5/march=armv5t/march=armv5te/march=armv6/march=armv6j/march=armv6k/march=armv6z/march=armv6zk
43 +MULTILIB_DIRNAMES += arm7tdmi arm9tdmi arm920t arm926ej-s arm1136j-s arm1136jf-s arm1176jz-s arm1176jzf-s xscale mpcore armv4 armv4t armv5 armv5t armv5te armv6 armv6j armv6k armv6z armv6zk
45 # MULTILIB_OPTIONS += mcpu=ep9312
46 # MULTILIB_DIRNAMES += ep9312
47 # MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
49 # MULTILIB_DIRNAMES += fpu soft
50 # MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
52 -# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
53 -# MULTILIB_DIRNAMES += normal interwork
54 +MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
55 +MULTILIB_DIRNAMES += normal interwork
57 # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore
58 # MULTILIB_DIRNAMES += elf under
59 diff -ruN gcc-4.2.0/gcc/config/i386/t-x86_64elf gcc-4.2.0.patched/gcc/config/i386/t-x86_64elf
60 --- gcc-4.2.0/gcc/config/i386/t-x86_64elf 1969-12-31 16:00:00.000000000 -0800
61 +++ gcc-4.2.0.patched/gcc/config/i386/t-x86_64elf 2007-07-19 00:12:21.000000000 -0700
63 +# On x86-64 we do not need any exports for glibc for 64-bit libgcc_s,
64 +# override the settings
65 +# from t-slibgcc-elf-ver and t-linux
66 +#SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver \
67 +# $(srcdir)/config/i386/libgcc-x86_64-glibc.ver
69 +MULTILIB_OPTIONS = m64/m32
70 +MULTILIB_DIRNAMES = 64 32
71 +MULTILIB_OSDIRNAMES = ../lib64 ../lib
73 +LIBGCC = stmp-multilib
74 +INSTALL_LIBGCC = install-multilib
76 +#EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o \
77 +# crtbeginT.o crtfastmath.o
79 +# The pushl in CTOR initialization interferes with frame pointer elimination.
80 +# crtend*.o cannot be compiled without -fno-asynchronous-unwind-tables,
81 +# because then __FRAME_END__ might not be the last thing in .eh_frame
83 +#CRTSTUFF_T_CFLAGS = -fno-omit-frame-pointer -fno-asynchronous-unwind-tables
84 diff -ruN gcc-4.2.0/gcc/config.gcc gcc-4.2.0.patched/gcc/config.gcc
85 --- gcc-4.2.0/gcc/config.gcc 2007-02-02 21:25:20.000000000 -0800
86 +++ gcc-4.2.0.patched/gcc/config.gcc 2007-07-19 00:11:23.000000000 -0700
87 @@ -1059,6 +1059,10 @@
89 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
92 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/x86-64.h"
93 + tmake_file="i386/t-x86_64elf"
95 i[34567]86-*-netbsdelf*)
96 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"