summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2014-12-14 18:01:09 +0000
committerandrew <andrew@FreeBSD.org>2014-12-14 18:01:09 +0000
commit8889da92636399027a53d6b6ecc1c6ead738f213 (patch)
treef1e56a58bf504fb2af7a749acae48f3105d91370
parentab2a78a144f1c58eacc3f606f74e76ab9d0db633 (diff)
downloadFreeBSD-src-8889da92636399027a53d6b6ecc1c6ead738f213.zip
FreeBSD-src-8889da92636399027a53d6b6ecc1c6ead738f213.tar.gz
MFC 275337:
There is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they are aliases. Sponsored by: ABT Systems Ltd MFC 275380: Use the floating-point instruction on ARMv7 as the clang 3.5 integrated assembler doesn't allow these two instructions to use co-processor 11. Sponsored by: ABT Systems Ltd
-rw-r--r--contrib/gcc/config/arm/lib1funcs.asm2
-rw-r--r--contrib/gcc/config/arm/libunwind.S15
2 files changed, 15 insertions, 2 deletions
diff --git a/contrib/gcc/config/arm/lib1funcs.asm b/contrib/gcc/config/arm/lib1funcs.asm
index 9245b3c..c29f894 100644
--- a/contrib/gcc/config/arm/lib1funcs.asm
+++ b/contrib/gcc/config/arm/lib1funcs.asm
@@ -980,8 +980,6 @@ LSYM(Lover12):
RET
- FUNC_END aeabi_ldiv0
- FUNC_END aeabi_idiv0
FUNC_END div0
#endif /* L_divmodsi_tools */
diff --git a/contrib/gcc/config/arm/libunwind.S b/contrib/gcc/config/arm/libunwind.S
index 81e4236..8b1e2f3 100644
--- a/contrib/gcc/config/arm/libunwind.S
+++ b/contrib/gcc/config/arm/libunwind.S
@@ -26,6 +26,13 @@
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
+#include <machine/acle-compat.h>
+
+/* Allow the use of VFP instructions */
+#if __ARM_ARCH >= 7
+.fpu vfp
+#endif
+
#ifndef __symbian__
#include "lib1funcs.asm"
@@ -66,14 +73,22 @@ ARM_FUNC_START restore_core_regs
ARM_FUNC_START gnu_Unwind_Restore_VFP
/* Use the generic coprocessor form so that gas doesn't complain
on soft-float targets. */
+#if __ARM_ARCH >= 7
+ fldmiax r0, {d0-d15}
+#else
ldc p11,cr0,[r0],{0x21} /* fldmiax r0, {d0-d15} */
+#endif
RET
/* Store VFR regsters d0-d15 to the address in r0. */
ARM_FUNC_START gnu_Unwind_Save_VFP
/* Use the generic coprocessor form so that gas doesn't complain
on soft-float targets. */
+#if __ARM_ARCH >= 7
+ fstmiax r0, {d0-d15}
+#else
stc p11,cr0,[r0],{0x21} /* fstmiax r0, {d0-d15} */
+#endif
RET
/* Wrappers to save core registers, then call the real routine. */
OpenPOWER on IntegriCloud