Don't generate unmangled aeabi with gen-tests
The symbols they delgate to also don't exist...
This commit is contained in:
parent
91b1291dc5
commit
d051480eff
|
@ -7,6 +7,7 @@ use mem::{memcpy, memmove, memset};
|
||||||
// calling convention which can't be implemented using a normal Rust function
|
// calling convention which can't be implemented using a normal Rust function
|
||||||
#[naked]
|
#[naked]
|
||||||
#[cfg_attr(not(test), no_mangle)]
|
#[cfg_attr(not(test), no_mangle)]
|
||||||
|
#[cfg(not(feature = "gen-tests"))]
|
||||||
pub unsafe fn __aeabi_uidivmod() {
|
pub unsafe fn __aeabi_uidivmod() {
|
||||||
asm!("push {lr}
|
asm!("push {lr}
|
||||||
sub sp, sp, #4
|
sub sp, sp, #4
|
||||||
|
@ -20,6 +21,7 @@ pub unsafe fn __aeabi_uidivmod() {
|
||||||
|
|
||||||
#[naked]
|
#[naked]
|
||||||
#[cfg_attr(not(test), no_mangle)]
|
#[cfg_attr(not(test), no_mangle)]
|
||||||
|
#[cfg(not(feature = "gen-tests"))]
|
||||||
pub unsafe fn __aeabi_uldivmod() {
|
pub unsafe fn __aeabi_uldivmod() {
|
||||||
asm!("push {r4, lr}
|
asm!("push {r4, lr}
|
||||||
sub sp, sp, #16
|
sub sp, sp, #16
|
||||||
|
@ -35,6 +37,7 @@ pub unsafe fn __aeabi_uldivmod() {
|
||||||
|
|
||||||
#[naked]
|
#[naked]
|
||||||
#[cfg_attr(not(test), no_mangle)]
|
#[cfg_attr(not(test), no_mangle)]
|
||||||
|
#[cfg(not(feature = "gen-tests"))]
|
||||||
pub unsafe fn __aeabi_idivmod() {
|
pub unsafe fn __aeabi_idivmod() {
|
||||||
asm!("push {r0, r1, r4, lr}
|
asm!("push {r0, r1, r4, lr}
|
||||||
bl __divsi3
|
bl __divsi3
|
||||||
|
@ -47,6 +50,7 @@ pub unsafe fn __aeabi_idivmod() {
|
||||||
|
|
||||||
#[naked]
|
#[naked]
|
||||||
#[cfg_attr(not(test), no_mangle)]
|
#[cfg_attr(not(test), no_mangle)]
|
||||||
|
#[cfg(not(feature = "gen-tests"))]
|
||||||
pub unsafe fn __aeabi_ldivmod() {
|
pub unsafe fn __aeabi_ldivmod() {
|
||||||
asm!("push {r4, lr}
|
asm!("push {r4, lr}
|
||||||
sub sp, sp, #16
|
sub sp, sp, #16
|
||||||
|
|
Loading…
Reference in New Issue