annotate sources/patches/gcc-core-sh2.patch @ 1773:eca87f8f58fb draft

Changes to build cross-compiler-sh2eb.
author Rob Landley <rob@landley.net>
date Sun, 21 Jun 2015 12:31:58 -0500
parents 7be9fee02572
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1702
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
1 diff -ru gcc-core/gcc/config.gcc gcc-core.bak/gcc/config.gcc
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
2 --- gcc-core/gcc/config.gcc 2014-10-11 13:03:43.993132192 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
3 +++ gcc-core.bak/gcc/config.gcc 2014-10-11 13:14:27.048275968 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
4 @@ -1964,7 +1964,7 @@
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
5 ;;
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
6 sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
7 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
8 - sh-*-linux* | sh[346lbe]*-*-linux* | \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
9 + sh-*-linux* | sh[2346lbe]*-*-linux* | \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
10 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
11 sh64-*-netbsd* | sh64l*-*-netbsd*)
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
12 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
13 diff -ru gcc-core/gcc/config/sh/lib1funcs.asm gcc-core.bak/gcc/config/sh/lib1funcs.asm
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
14 --- gcc-core/gcc/config/sh/lib1funcs.asm 2006-06-13 12:44:56.000000000 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
15 +++ gcc-core.bak/gcc/config/sh/lib1funcs.asm 2014-10-16 06:28:53.842282481 -0500
1712
7be9fee02572 Don't let the sh2 patch break sh4.
Rob Landley <rob@landley.net>
parents: 1702
diff changeset
16 @@ -3891,3 +3891,7 @@
1702
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
17 ENDFUNC(GLOBAL(udiv_qrnnd_16))
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
18 #endif /* !__SHMEDIA__ */
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
19 #endif /* L_udiv_qrnnd_16 */
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
20 +
1712
7be9fee02572 Don't let the sh2 patch break sh4.
Rob Landley <rob@landley.net>
parents: 1702
diff changeset
21 +#ifdef __sh2__
1702
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
22 +#include "lib1funcs-Os-4-200.asm"
1712
7be9fee02572 Don't let the sh2 patch break sh4.
Rob Landley <rob@landley.net>
parents: 1702
diff changeset
23 +#endif
1702
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
24 diff -ru gcc-core/gcc/config/sh/lib1funcs.h gcc-core.bak/gcc/config/sh/lib1funcs.h
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
25 --- gcc-core/gcc/config/sh/lib1funcs.h 2006-06-13 12:44:56.000000000 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
26 +++ gcc-core.bak/gcc/config/sh/lib1funcs.h 2014-10-16 06:27:44.361942821 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
27 @@ -26,6 +26,9 @@
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
28 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
29 Boston, MA 02110-1301, USA. */
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
30
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
31 +#ifndef LIB1FUNCS_H
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
32 +#define LIB1FUNCS_H
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
33 +
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
34 #ifdef __ELF__
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
35 #define LOCAL(X) .L_##X
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
36 #define FUNC(X) .type X,@function
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
37 @@ -79,3 +82,5 @@
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
38 #define SL1(branch, dest, in_slot) \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
39 branch##/s dest; in_slot
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
40 #endif /* !__sh1__ */
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
41 +
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
42 +#endif
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
43 diff -ruN gcc-core/gcc/config/sh/t-sh gcc-core.bak/gcc/config/sh/t-sh
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
44 --- gcc-core/gcc/config/sh/t-sh 2006-06-13 12:44:56.000000000 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
45 +++ gcc-core.bak/gcc/config/sh/t-sh 2014-10-24 07:13:49.252759353 -0500
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
46 @@ -5,7 +5,7 @@
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
47 LIB1ASMSRC = sh/lib1funcs.asm
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
48 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
49 _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
50 - _div_table _udiv_qrnnd_16 \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
51 + _div_table _udiv_qrnnd_16 _udivsi3_i4i \
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
52 $(LIB1ASMFUNCS_CACHE)
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
53
1829b36abc97 Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
Rob Landley <rob@landley.net>
parents:
diff changeset
54 # We want fine grained libraries, so use the new code to build the