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:
Diffstat (limited to 'newlib')
-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__