Mercurial > hg > aboriginal
comparison 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 |
comparison
equal
deleted
inserted
replaced
1701:e4ff2cf4ac62 | 1702:1829b36abc97 |
---|---|
1 diff -ru gcc-core/gcc/config.gcc gcc-core.bak/gcc/config.gcc | |
2 --- gcc-core/gcc/config.gcc 2014-10-11 13:03:43.993132192 -0500 | |
3 +++ gcc-core.bak/gcc/config.gcc 2014-10-11 13:14:27.048275968 -0500 | |
4 @@ -1964,7 +1964,7 @@ | |
5 ;; | |
6 sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \ | |
7 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ | |
8 - sh-*-linux* | sh[346lbe]*-*-linux* | \ | |
9 + sh-*-linux* | sh[2346lbe]*-*-linux* | \ | |
10 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ | |
11 sh64-*-netbsd* | sh64l*-*-netbsd*) | |
12 tmake_file="${tmake_file} sh/t-sh sh/t-elf" | |
13 diff -ru gcc-core/gcc/config/sh/lib1funcs.asm gcc-core.bak/gcc/config/sh/lib1funcs.asm | |
14 --- gcc-core/gcc/config/sh/lib1funcs.asm 2006-06-13 12:44:56.000000000 -0500 | |
15 +++ gcc-core.bak/gcc/config/sh/lib1funcs.asm 2014-10-16 06:28:53.842282481 -0500 | |
16 @@ -3891,3 +3891,5 @@ | |
17 ENDFUNC(GLOBAL(udiv_qrnnd_16)) | |
18 #endif /* !__SHMEDIA__ */ | |
19 #endif /* L_udiv_qrnnd_16 */ | |
20 + | |
21 +#include "lib1funcs-Os-4-200.asm" | |
22 diff -ru gcc-core/gcc/config/sh/lib1funcs.h gcc-core.bak/gcc/config/sh/lib1funcs.h | |
23 --- gcc-core/gcc/config/sh/lib1funcs.h 2006-06-13 12:44:56.000000000 -0500 | |
24 +++ gcc-core.bak/gcc/config/sh/lib1funcs.h 2014-10-16 06:27:44.361942821 -0500 | |
25 @@ -26,6 +26,9 @@ | |
26 the Free Software Foundation, 51 Franklin Street, Fifth Floor, | |
27 Boston, MA 02110-1301, USA. */ | |
28 | |
29 +#ifndef LIB1FUNCS_H | |
30 +#define LIB1FUNCS_H | |
31 + | |
32 #ifdef __ELF__ | |
33 #define LOCAL(X) .L_##X | |
34 #define FUNC(X) .type X,@function | |
35 @@ -79,3 +82,5 @@ | |
36 #define SL1(branch, dest, in_slot) \ | |
37 branch##/s dest; in_slot | |
38 #endif /* !__sh1__ */ | |
39 + | |
40 +#endif | |
41 diff -ruN gcc-core/gcc/config/sh/t-sh gcc-core.bak/gcc/config/sh/t-sh | |
42 --- gcc-core/gcc/config/sh/t-sh 2006-06-13 12:44:56.000000000 -0500 | |
43 +++ gcc-core.bak/gcc/config/sh/t-sh 2014-10-24 07:13:49.252759353 -0500 | |
44 @@ -5,7 +5,7 @@ | |
45 LIB1ASMSRC = sh/lib1funcs.asm | |
46 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem \ | |
47 _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \ | |
48 - _div_table _udiv_qrnnd_16 \ | |
49 + _div_table _udiv_qrnnd_16 _udivsi3_i4i \ | |
50 $(LIB1ASMFUNCS_CACHE) | |
51 | |
52 # We want fine grained libraries, so use the new code to build the |