Skip to content

Commit d051480

Browse files
committed
Don't generate unmangled aeabi with gen-tests
The symbols they delgate to also don't exist...
1 parent 91b1291 commit d051480

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/arm.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use mem::{memcpy, memmove, memset};
77
// calling convention which can't be implemented using a normal Rust function
88
#[naked]
99
#[cfg_attr(not(test), no_mangle)]
10+
#[cfg(not(feature = "gen-tests"))]
1011
pub unsafe fn __aeabi_uidivmod() {
1112
asm!("push {lr}
1213
sub sp, sp, #4
@@ -20,6 +21,7 @@ pub unsafe fn __aeabi_uidivmod() {
2021

2122
#[naked]
2223
#[cfg_attr(not(test), no_mangle)]
24+
#[cfg(not(feature = "gen-tests"))]
2325
pub unsafe fn __aeabi_uldivmod() {
2426
asm!("push {r4, lr}
2527
sub sp, sp, #16
@@ -35,6 +37,7 @@ pub unsafe fn __aeabi_uldivmod() {
3537

3638
#[naked]
3739
#[cfg_attr(not(test), no_mangle)]
40+
#[cfg(not(feature = "gen-tests"))]
3841
pub unsafe fn __aeabi_idivmod() {
3942
asm!("push {r0, r1, r4, lr}
4043
bl __divsi3
@@ -47,6 +50,7 @@ pub unsafe fn __aeabi_idivmod() {
4750

4851
#[naked]
4952
#[cfg_attr(not(test), no_mangle)]
53+
#[cfg(not(feature = "gen-tests"))]
5054
pub unsafe fn __aeabi_ldivmod() {
5155
asm!("push {r4, lr}
5256
sub sp, sp, #16

0 commit comments

Comments
 (0)