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
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-11-18 19:30:55 +0300
committerNick Clifton <nickc@redhat.com>2002-11-18 19:30:55 +0300
commit1f176167c5b0da07128b6654bb1ccd181684b66a (patch)
tree2900e90bfb98553c6ee8b276293d41f90027ad12
parent28ecb2f58e61e875b2bc502a269a30d58191df52 (diff)
Fix bugs in previous delta
-rw-r--r--newlib/libc/sys/arm/crt0.S14
1 files changed, 6 insertions, 8 deletions
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 581da12d6..3ebb5f7fe 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -95,6 +95,12 @@ __change_mode:
#endif
/* Parse string at r1 */
mov r0, #0 /* count of arguments so far */
+ /* Push a NULL argument onto the end of the list. */
+#ifdef __thumb__
+ push {r0}
+#else
+ stmfd sp!, {r0}
+#endif
.LC10:
/* Skip leading blanks */
#ifdef __thumb__
@@ -180,14 +186,6 @@ __change_mode:
strhi r4, [r3], #4
bhi .LC13
#endif
-
- /* Push a NULL argument onto the end of the list. */
- mov r2, #0
-#ifdef __thumb__
- push {r2}
-#else
- stmfd sp!, {r1}
-#endif
#endif
#ifdef __USES_INITFINI__