diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-04-04 15:42:35 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-04-04 21:56:30 +0200 |
commit | 00c0d2012f2e8d977bad5487ab6f3b8ca46c8572 (patch) | |
tree | 5265d39f5954a356abeee1e7368bbd85e3b6c9f6 /tools/toolchain-patches/gcc-4.0.3-rockbox-1.diff | |
parent | 74ab8d14904041023bd0b66e05b6560110fc71be (diff) | |
download | rockbox-00c0d2012f2e8d977bad5487ab6f3b8ca46c8572.tar.gz rockbox-00c0d2012f2e8d977bad5487ab6f3b8ca46c8572.zip |
rockboxdev: Store toolchain patches in-tree, instead of downloading them
This frees us from having to keep the web site in sync.
Note that only currently-referenced patches were kept.
Change-Id: I50da1b75baeac214cf142c8b76a05a8c56b4c1d4
Diffstat (limited to 'tools/toolchain-patches/gcc-4.0.3-rockbox-1.diff')
-rw-r--r-- | tools/toolchain-patches/gcc-4.0.3-rockbox-1.diff | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/tools/toolchain-patches/gcc-4.0.3-rockbox-1.diff b/tools/toolchain-patches/gcc-4.0.3-rockbox-1.diff new file mode 100644 index 0000000000..abd0f44be3 --- /dev/null +++ b/tools/toolchain-patches/gcc-4.0.3-rockbox-1.diff | |||
@@ -0,0 +1,75 @@ | |||
1 | diff -ru gcc-4.0.3-orig/gcc/config/sh/sh.h gcc-4.0.3/gcc/config/sh/sh.h | ||
2 | --- gcc-4.0.3-orig/gcc/config/sh/sh.h 2006-03-06 23:40:49.000000000 +0100 | ||
3 | +++ gcc-4.0.3/gcc/config/sh/sh.h 2006-04-28 03:03:18.000000000 +0200 | ||
4 | @@ -2809,12 +2809,15 @@ | ||
5 | #define CASE_VECTOR_MODE ((! optimize || TARGET_BIGTABLE) ? SImode : HImode) | ||
6 | |||
7 | #define CASE_VECTOR_SHORTEN_MODE(MIN_OFFSET, MAX_OFFSET, BODY) \ | ||
8 | -((MIN_OFFSET) >= 0 && (MAX_OFFSET) <= 127 \ | ||
9 | +((MIN_OFFSET) >= 0 && (MAX_OFFSET) <= 126 \ | ||
10 | ? (ADDR_DIFF_VEC_FLAGS (BODY).offset_unsigned = 0, QImode) \ | ||
11 | - : (MIN_OFFSET) >= 0 && (MAX_OFFSET) <= 255 \ | ||
12 | + : (MIN_OFFSET) >= 0 && (MAX_OFFSET) <= 254 \ | ||
13 | ? (ADDR_DIFF_VEC_FLAGS (BODY).offset_unsigned = 1, QImode) \ | ||
14 | : (MIN_OFFSET) >= -32768 && (MAX_OFFSET) <= 32767 ? HImode \ | ||
15 | : SImode) | ||
16 | +/* Note: The maximum range for byte-sized offsets was reduced by 1 to work | ||
17 | + around a bug in final.c I don't know how to fix properly (jump table | ||
18 | + length calculation should take alignment into account). -- Jens Arnold */ | ||
19 | |||
20 | /* Define as C expression which evaluates to nonzero if the tablejump | ||
21 | instruction expects the table to contain offsets from the address of the | ||
22 | diff -ru gcc-4.0.3-orig/gcc/version.c gcc-4.0.3/gcc/version.c | ||
23 | --- gcc-4.0.3-orig/gcc/version.c 2006-03-09 21:46:18.000000000 +0100 | ||
24 | +++ gcc-4.0.3/gcc/version.c 2006-04-29 23:52:22.000000000 +0200 | ||
25 | @@ -5,7 +5,7 @@ | ||
26 | please modify this string to indicate that, e.g. by putting your | ||
27 | organization's name in parentheses at the end of the string. */ | ||
28 | |||
29 | -const char version_string[] = "4.0.3"; | ||
30 | +const char version_string[] = "4.0.3 (rockbox patch #1)"; | ||
31 | |||
32 | /* This is the location of the online document giving instructions for | ||
33 | reporting bugs. If you distribute a modified version of GCC, | ||
34 | diff -ru gcc-4.0.3-orig/gcc/config.gcc gcc-4.0.3/gcc/config.gcc | ||
35 | --- gcc-4.0.3-orig/gcc/config.gcc So Mrz 7 23:08:24 2010 | ||
36 | +++ gcc-4.0.3/gcc/config.gcc Mo Mrz 8 01:36:54 2010 | ||
37 | @@ -1867,7 +1867,7 @@ | ||
38 | sh2*) sh_cpu_target=sh2 ;; | ||
39 | *) sh_cpu_target=sh1 ;; | ||
40 | esac | ||
41 | - sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`" | ||
42 | + sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr [A-Z]_ [a-z]-`" | ||
43 | case $sh_cpu_default in | ||
44 | sh5-64media-nofpu | sh5-64media | \ | ||
45 | sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \ | ||
46 | @@ -1889,9 +1889,9 @@ | ||
47 | *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;; | ||
48 | esac | ||
49 | fi | ||
50 | - target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr a-z- A-Z_` | ||
51 | + target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr [a-z]- [A-Z]_` | ||
52 | tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' | ||
53 | - sh_multilibs=`echo $sh_multilibs,$sh_cpu_default | sed -e 's/[ ,/][ ,]*/ /g' -e 's/ $//' -e s/^m/sh/ -e 's/ m/ sh/g' | tr A-Z_ a-z-` | ||
54 | + sh_multilibs=`echo $sh_multilibs,$sh_cpu_default | sed -e 's/[ ,/][ ,]*/ /g' -e 's/ $//' -e s/^m/sh/ -e 's/ m/ sh/g' | tr [A-Z]_ [a-z]-` | ||
55 | for sh_multilib in ${sh_multilibs}; do | ||
56 | case ${sh_multilib} in | ||
57 | sh1 | sh2 | sh2e | sh3 | sh3e | \ | ||
58 | @@ -1902,7 +1902,7 @@ | ||
59 | sh5-32media | sh5-32media-nofpu | \ | ||
60 | sh5-compact | sh5-compact-nofpu) | ||
61 | tmake_file="${tmake_file} sh/t-mlib-${sh_multilib}" | ||
62 | - tm_defines="$tm_defines SUPPORT_`echo $sh_multilib|tr a-z- A-Z_`" | ||
63 | + tm_defines="$tm_defines SUPPORT_`echo $sh_multilib|tr [a-z]- [A-Z]_`" | ||
64 | ;; | ||
65 | *) | ||
66 | echo "with_multilib_list=${sh_multilib} not supported." | ||
67 | @@ -2631,7 +2631,7 @@ | ||
68 | |||
69 | sh[123456ble]-*-* | sh-*-*) | ||
70 | supported_defaults="cpu" | ||
71 | - case "`echo $with_cpu | tr A-Z_ a-z- | sed s/sh/m/`" in | ||
72 | + case "`echo $with_cpu | tr [A-Z]_ [a-z]- | sed s/sh/m/`" in | ||
73 | "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) | ||
74 | # OK | ||
75 | ;; | ||