about summary refs log tree commit diff
path: root/library/compiler-builtins
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-06-24 11:34:10 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-06-24 11:34:10 -0700
commit3eff54a4eeca72cfc10911d30eca24a4dff995c1 (patch)
treed1936006972616cde62cd995f8a44f2cc176a384 /library/compiler-builtins
parent90dab55cb0c3e7bb7df26167abbd0b18f56e81c0 (diff)
downloadrust-3eff54a4eeca72cfc10911d30eca24a4dff995c1.tar.gz
rust-3eff54a4eeca72cfc10911d30eca24a4dff995c1.zip
Don't generate unmangled aeabi with gen-tests
The symbols they delgate to also don't exist...
Diffstat (limited to 'library/compiler-builtins')
-rw-r--r--library/compiler-builtins/src/arm.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/compiler-builtins/src/arm.rs b/library/compiler-builtins/src/arm.rs
index 6e1c8f2b0b2..8d5808c82db 100644
--- a/library/compiler-builtins/src/arm.rs
+++ b/library/compiler-builtins/src/arm.rs
@@ -7,6 +7,7 @@ use mem::{memcpy, memmove, memset};
 // calling convention which can't be implemented using a normal Rust function
 #[naked]
 #[cfg_attr(not(test), no_mangle)]
+#[cfg(not(feature = "gen-tests"))]
 pub unsafe fn __aeabi_uidivmod() {
     asm!("push {lr}
           sub sp, sp, #4
@@ -20,6 +21,7 @@ pub unsafe fn __aeabi_uidivmod() {
 
 #[naked]
 #[cfg_attr(not(test), no_mangle)]
+#[cfg(not(feature = "gen-tests"))]
 pub unsafe fn __aeabi_uldivmod() {
     asm!("push {r4, lr}
           sub sp, sp, #16
@@ -35,6 +37,7 @@ pub unsafe fn __aeabi_uldivmod() {
 
 #[naked]
 #[cfg_attr(not(test), no_mangle)]
+#[cfg(not(feature = "gen-tests"))]
 pub unsafe fn __aeabi_idivmod() {
     asm!("push {r0, r1, r4, lr}
           bl __divsi3
@@ -47,6 +50,7 @@ pub unsafe fn __aeabi_idivmod() {
 
 #[naked]
 #[cfg_attr(not(test), no_mangle)]
+#[cfg(not(feature = "gen-tests"))]
 pub unsafe fn __aeabi_ldivmod() {
     asm!("push {r4, lr}
           sub sp, sp, #16