aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/ChangeLog10
-rw-r--r--libstdc++-v3/libsupc++/eh_arm.cc16
2 files changed, 15 insertions, 11 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b2f8f00..72bf941 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,13 @@
+2014-05-20 Alexey Merzlyakov <alexey.merzlyakov@samsung.com>
+
+ PR libstdc++/61223
+ Revert:
+ 2014-05-16 Alexey Merzlyakov <alexey.merzlyakov@samsung.com>
+
+ PR libstdc++/60758
+ * libsupc++/eh_arm.cc (__cxa_end_cleanup): Change r4 to lr in save/restore
+ and add unwind directives.
+
2014-05-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* testsuite/lib/libstdc++.exp (load_gcc_lib): Register loaded libs.
diff --git a/libstdc++-v3/libsupc++/eh_arm.cc b/libstdc++-v3/libsupc++/eh_arm.cc
index 6a45af5..aa453dd 100644
--- a/libstdc++-v3/libsupc++/eh_arm.cc
+++ b/libstdc++-v3/libsupc++/eh_arm.cc
@@ -199,33 +199,27 @@ asm (".global __cxa_end_cleanup\n"
" nop 5\n");
#else
// Assembly wrapper to call __gnu_end_cleanup without clobbering r1-r3.
-// Also push lr to preserve stack alignment and to allow backtracing.
+// Also push r4 to preserve stack alignment.
#ifdef __thumb__
asm (" .pushsection .text.__cxa_end_cleanup\n"
" .global __cxa_end_cleanup\n"
" .type __cxa_end_cleanup, \"function\"\n"
" .thumb_func\n"
"__cxa_end_cleanup:\n"
-" .fnstart\n"
-" push\t{r1, r2, r3, lr}\n"
-" .save\t{r1, r2, r3, lr}\n"
+" push\t{r1, r2, r3, r4}\n"
" bl\t__gnu_end_cleanup\n"
-" pop\t{r1, r2, r3, lr}\n"
+" pop\t{r1, r2, r3, r4}\n"
" bl\t_Unwind_Resume @ Never returns\n"
-" .fnend\n"
" .popsection\n");
#else
asm (" .pushsection .text.__cxa_end_cleanup\n"
" .global __cxa_end_cleanup\n"
" .type __cxa_end_cleanup, \"function\"\n"
"__cxa_end_cleanup:\n"
-" .fnstart\n"
-" stmfd\tsp!, {r1, r2, r3, lr}\n"
-" .save\t{r1, r2, r3, lr}\n"
+" stmfd\tsp!, {r1, r2, r3, r4}\n"
" bl\t__gnu_end_cleanup\n"
-" ldmfd\tsp!, {r1, r2, r3, lr}\n"
+" ldmfd\tsp!, {r1, r2, r3, r4}\n"
" bl\t_Unwind_Resume @ Never returns\n"
-" .fnend\n"
" .popsection\n");
#endif
#endif