summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-03 08:45:38 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-03 08:45:38 +0000
commitc82401917fb377410fede0de1b4a29ceab0f0b6c (patch)
tree202d0bc7d61521d444bbdf9e5d68153408f9670f
parenta5c691e9e18c0b36a7aefdd8e9908093196518a0 (diff)
downloadgcc-c82401917fb377410fede0de1b4a29ceab0f0b6c.tar.gz
* config/sh/crtn.asm (init, fini): Restore r15 from r14, not the
other way round. * config/sh/crti.asm: Fix typos in comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41047 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/crti.asm6
-rw-r--r--gcc/config/sh/crtn.asm6
3 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e5dc3202be8..43d7d7bdaab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-03 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/sh/crtn.asm (init, fini): Restore r15 from r14, not the
+ other way round.
+ * config/sh/crti.asm: Fix typos in comments.
+
2001-04-03 Alan Modra <alan@linuxcare.com.au>
* pa.h: Revise comments for TARGET_NO_SPACE_REGS and
diff --git a/gcc/config/sh/crti.asm b/gcc/config/sh/crti.asm
index ece86667e74..cfed71d2a86 100644
--- a/gcc/config/sh/crti.asm
+++ b/gcc/config/sh/crti.asm
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file was adapted from glibc sources.
This file is part of GNU CC.
@@ -39,7 +39,7 @@ Boston, MA 02111-1307, USA. */
such object files. */
.section .init
-/* The alignment below can't be smaller, otherwide the mova below
+/* The alignment below can't be smaller, otherwise the mova below
breaks. Yes, we might align just the label, but then we'd be
exchanging an alignment here for one there, since the code fragment
below ensures 4-byte alignment on __ELF__. */
@@ -70,7 +70,7 @@ _init:
#endif
.section .fini
-/* The alignment below can't be smaller, otherwide the mova below
+/* The alignment below can't be smaller, otherwise the mova below
breaks. Yes, we might align just the label, but then we'd be
exchanging an alignment here for one there, since the code fragment
below ensures 4-byte alignment on __ELF__. */
diff --git a/gcc/config/sh/crtn.asm b/gcc/config/sh/crtn.asm
index 86a4ee3f976..6aa9a52d2d6 100644
--- a/gcc/config/sh/crtn.asm
+++ b/gcc/config/sh/crtn.asm
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file was adapted from glibc sources.
This file is part of GNU CC.
@@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA. */
/* See an explanation about .init and .fini in crti.asm. */
.section .init
- mov r15,r14
+ mov r14,r15
lds.l @r15+,pr
mov.l @r15+,r14
rts
@@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA. */
#endif
.section .fini
- mov r15,r14
+ mov r14,r15
lds.l @r15+,pr
mov.l @r15+,r14
rts