Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-01-24 18:46:04 +0300
committerNick Clifton <nickc@redhat.com>2003-01-24 18:46:04 +0300
commit0127ae4041c28f9a591400dadeea3bc67fd45c86 (patch)
treed523395d0e1faba4603b2d896447386b9c022e81 /newlib
parent8bbcd9a1a5bd3648c93cebf277bc267d03eb8708 (diff)
Add sh2e support
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog10
-rw-r--r--newlib/libc/include/machine/ieeefp.h2
-rw-r--r--newlib/libc/machine/sh/asm.h2
-rw-r--r--newlib/libc/machine/sh/setjmp.S6
4 files changed, 15 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index e30ea2124..29bd68cc0 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,13 @@
+2003-01-24 Nick Clifton <nickc@redhat.com>
+
+ * Add sh2e support:
+
+ 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
+
+ * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
+ * libc/machine/sh/setjmp.S: Likewise.
+ * libc/include/machine/ieeefp.h: Likewise.
+
2003-01-24 Corinna Vinschen <corinna@vinschen.de>
* libc/include/sys/unistd.h: Add setregid and setreuid declarations
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
index bf3d4440b..3fcb9a4ee 100644
--- a/newlib/libc/include/machine/ieeefp.h
+++ b/newlib/libc/include/machine/ieeefp.h
@@ -94,7 +94,7 @@
#else
#define __IEEE_BIG_ENDIAN
#endif
-#if defined(__SH3E__) || defined(__SH4_SINGLE_ONLY__)
+#if defined(__SH2E__) || defined(__SH3E__) || defined(__SH4_SINGLE_ONLY__)
#define _DOUBLE_IS_32BITS
#endif
#endif
diff --git a/newlib/libc/machine/sh/asm.h b/newlib/libc/machine/sh/asm.h
index 5b85c501e..99a1866a1 100644
--- a/newlib/libc/machine/sh/asm.h
+++ b/newlib/libc/machine/sh/asm.h
@@ -22,7 +22,7 @@
#define ENTRY(name) \
_ENTRY(_C_LABEL(name))
-#if (defined (__sh2__) || defined (__sh3__) || defined (__SH3E__) \
+#if (defined (__sh2__) || defined (__SH2E__) || defined (__sh3__) || defined (__SH3E__) \
|| defined (__SH4_SINGLE__) || defined (__SH4__)) \
|| defined (__SH4_SINGLE_ONLY__) || defined (__SH5__)
#define DELAYED_BRANCHES
diff --git a/newlib/libc/machine/sh/setjmp.S b/newlib/libc/machine/sh/setjmp.S
index 9508496f1..520218f23 100644
--- a/newlib/libc/machine/sh/setjmp.S
+++ b/newlib/libc/machine/sh/setjmp.S
@@ -72,7 +72,7 @@ ENTRY(setjmp)
movi 0, r2
blink tr0, r63
#else
-#if defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
+#if defined (__SH2E__) || defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
add #(13*4),r4
#else
add #(9*4),r4
@@ -80,7 +80,7 @@ ENTRY(setjmp)
sts.l pr,@-r4
-#if defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
+#if defined (__SH2E__) || defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
fmov.s fr15,@-r4 ! call saved floating point registers
fmov.s fr14,@-r4
fmov.s fr13,@-r4
@@ -173,7 +173,7 @@ ENTRY(longjmp)
mov.l @r4+,r14
mov.l @r4+,r15
-#if defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
+#if defined (__SH2E__) || defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
fmov.s @r4+,fr12 ! call saved floating point registers
fmov.s @r4+,fr13
fmov.s @r4+,fr14