Mercurial > hg > aboriginal
annotate sources/patches/gcc-core-sh2.patch @ 1702:1829b36abc97 draft
Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 27 Oct 2014 17:02:14 -0500 |
parents | |
children | 7be9fee02572 |
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 |
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
|
16 @@ -3891,3 +3891,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
|
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 + |
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
|
21 +#include "lib1funcs-Os-4-200.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
|
22 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
|
23 --- 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
|
24 +++ 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
|
25 @@ -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
|
26 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
|
27 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
|
28 |
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 +#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
|
30 +#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
|
31 + |
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 #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
|
33 #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
|
34 #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
|
35 @@ -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
|
36 #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
|
37 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
|
38 #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
|
39 + |
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 |
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 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
|
42 --- 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
|
43 +++ 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
|
44 @@ -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
|
45 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
|
46 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
|
47 _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
|
48 - _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
|
49 + _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
|
50 $(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
|
51 |
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 # We want fine grained libraries, so use the new code to build the |