diff options
Diffstat (limited to 'tools/toolchain-patches/rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff')
-rw-r--r-- | tools/toolchain-patches/rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/tools/toolchain-patches/rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff b/tools/toolchain-patches/rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff new file mode 100644 index 0000000000..3397153495 --- /dev/null +++ b/tools/toolchain-patches/rockbox-multilibs-noexceptions-arm-elf-eabi-gcc-4.4.2_1.diff | |||
@@ -0,0 +1,64 @@ | |||
1 | diff -ur gcc-4.4.2-orig/gcc/config/arm/t-arm-elf gcc-4.4.2/gcc/config/arm/t-arm-elf | ||
2 | --- gcc-4.4.2-orig/gcc/config/arm/t-arm-elf 2008-06-12 13:29:47.000000000 -0400 | ||
3 | +++ gcc-4.4.2/gcc/config/arm/t-arm-elf 2009-11-05 20:14:57.000000000 -0500 | ||
4 | @@ -28,6 +28,11 @@ | ||
5 | #MULTILIB_MATCHES += march?armv7=mcpu?cortex-r4 | ||
6 | #MULTILIB_MATCHES += march?armv7=mcpu?cortex-m3 | ||
7 | |||
8 | +# We build a lib for each specific CPU Rockbox targets. If anyone knows a better | ||
9 | +# way to do this, please let us know. | ||
10 | +MULTILIB_OPTIONS += mcpu=arm7tdmi/mcpu=arm9tdmi/mcpu=arm9e/mcpu=arm926ej-s/mcpu=arm1136jf-s | ||
11 | +MULTILIB_DIRNAMES += arm7tdmi arm9tdmi arm9e arm926ej-s arm1136jf-s | ||
12 | + | ||
13 | # MULTILIB_OPTIONS += mcpu=ep9312 | ||
14 | # MULTILIB_DIRNAMES += ep9312 | ||
15 | # MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312* | ||
16 | @@ -40,8 +50,8 @@ | ||
17 | # MULTILIB_DIRNAMES += fpu soft | ||
18 | # MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* | ||
19 | # | ||
20 | -# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork | ||
21 | -# MULTILIB_DIRNAMES += normal interwork | ||
22 | +MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork | ||
23 | +MULTILIB_DIRNAMES += normal interwork | ||
24 | # | ||
25 | # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore | ||
26 | # MULTILIB_DIRNAMES += elf under | ||
27 | diff -ur gcc-4.4.2-orig/libgcc/Makefile.in gcc-4.4.2/libgcc/Makefile.in | ||
28 | --- gcc-4.4.2-orig/libgcc/Makefile.in 2009-04-09 19:23:07.000000000 -0400 | ||
29 | +++ gcc-4.4.2/libgcc/Makefile.in 2009-11-05 03:59:37.000000000 -0500 | ||
30 | @@ -393,14 +393,14 @@ | ||
31 | lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS)) | ||
32 | $(lib2-divmod-o): %$(objext): $(gcc_srcdir)/libgcc2.c | ||
33 | $(gcc_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ | ||
34 | - -fexceptions -fnon-call-exceptions $(vis_hide) | ||
35 | + -fno-exceptions -fno-non-call-exceptions $(vis_hide) | ||
36 | libgcc-objects += $(lib2-divmod-o) | ||
37 | |||
38 | ifeq ($(enable_shared),yes) | ||
39 | lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS)) | ||
40 | $(lib2-divmod-s-o): %_s$(objext): $(gcc_srcdir)/libgcc2.c | ||
41 | $(gcc_s_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ | ||
42 | - -fexceptions -fnon-call-exceptions | ||
43 | + -fno-exceptions -fno-non-call-exceptions | ||
44 | libgcc-s-objects += $(lib2-divmod-s-o) | ||
45 | endif | ||
46 | |||
47 | @@ -688,7 +688,7 @@ | ||
48 | # libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and | ||
49 | # LIB2ADDEHSHARED matter. (Usually all three are identical.) | ||
50 | |||
51 | -c_flags := -fexceptions | ||
52 | +c_flags := -fno-exceptions | ||
53 | |||
54 | ifeq ($(enable_shared),yes) | ||
55 | |||
56 | @@ -710,7 +710,7 @@ | ||
57 | |||
58 | # Build LIBUNWIND. | ||
59 | |||
60 | -c_flags := -fexceptions | ||
61 | +c_flags := -fno-exceptions | ||
62 | |||
63 | libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND)))) | ||
64 | |||