File tree 3 files changed +14
-14
lines changed
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -115,19 +115,9 @@ done
115
115
116
116
rm -f $path
117
117
118
- # Verification of the `intrinsics` program doesn't work on thumb targets right
119
- # now.
120
- case $1 in
121
- thumb* )
122
- exit 0
123
- ;;
124
- * )
125
- ;;
126
- esac
127
-
128
118
# Verify that we haven't drop any intrinsic/symbol
129
119
RUSTFLAGS=" -C debug-assertions=no" \
130
- $cargo build --features " $INTRINSICS_FEATURES " --target $1 --example intrinsics
120
+ $cargo build --features " $INTRINSICS_FEATURES " --target $1 --example intrinsics -v
131
121
132
122
# Verify that there are no undefined symbols to `panic` within our
133
123
# implementations
Original file line number Diff line number Diff line change 12
12
#![ feature( core_float) ]
13
13
#![ feature( lang_items) ]
14
14
#![ feature( start) ]
15
- #![ feature( panic_unwind) ]
16
15
#![ feature( i128_type) ]
16
+ #![ cfg_attr( windows, feature( panic_unwind) ) ]
17
17
#![ no_std]
18
18
19
19
#[ cfg( not( thumb) ) ]
20
20
extern crate alloc_system;
21
21
extern crate compiler_builtins;
22
+ #[ cfg( windows) ]
22
23
extern crate panic_unwind;
23
24
24
25
// NOTE cfg(not(thumbv6m)) means that the operation is not supported on ARMv6-M at all. Not even
@@ -444,7 +445,16 @@ pub fn __aeabi_unwind_cpp_pr0() {}
444
445
#[ no_mangle]
445
446
pub fn __aeabi_unwind_cpp_pr1 ( ) { }
446
447
447
- #[ cfg( not( test) ) ]
448
+ #[ cfg( not( windows) ) ]
449
+ #[ allow( non_snake_case) ]
450
+ #[ no_mangle]
451
+ pub fn _Unwind_Resume ( ) { }
452
+
453
+ #[ cfg( not( windows) ) ]
454
+ #[ lang = "eh_personality" ]
455
+ #[ no_mangle]
456
+ pub extern "C" fn eh_personality ( ) { }
457
+
448
458
#[ lang = "panic_fmt" ]
449
459
#[ no_mangle]
450
460
#[ allow( private_no_mangle_fns) ]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ pub unsafe fn __aeabi_uldivmod() {
37
37
#[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
38
38
pub unsafe fn __aeabi_idivmod ( ) {
39
39
asm ! ( "push {r0, r1, r4, lr}
40
- bl __divsi3
40
+ bl __aeabi_idiv
41
41
pop {r1, r2}
42
42
muls r2, r2, r0
43
43
subs r1, r1, r2
You can’t perform that action at this time.
0 commit comments