File tree 5 files changed +11
-8
lines changed
5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,10 @@ fn main() {
360
360
361
361
}
362
362
363
+ if llvm_target. last ( ) . unwrap ( ) . ends_with ( "gnueabi" ) {
364
+ sources. extend ( & [ "addsf3.c" , "adddf3.c" ] ) ;
365
+ }
366
+
363
367
if target_arch == "aarch64" {
364
368
sources. extend ( & [ "comparetf2.c" ,
365
369
"extenddftf2.c" ,
Original file line number Diff line number Diff line change @@ -58,11 +58,13 @@ pub unsafe fn __aeabi_ldivmod() {
58
58
}
59
59
60
60
// TODO: These aeabi_* functions should be defined as aliases
61
+ #[ cfg( not( gnueabi) ) ]
61
62
#[ cfg_attr( not( test) , no_mangle) ]
62
63
pub extern "C" fn __aeabi_dadd ( a : f64 , b : f64 ) -> f64 {
63
64
:: float:: add:: __adddf3 ( a, b)
64
65
}
65
66
67
+ #[ cfg( not( gnueabi) ) ]
66
68
#[ cfg_attr( not( test) , no_mangle) ]
67
69
pub extern "C" fn __aeabi_fadd ( a : f32 , b : f32 ) -> f32 {
68
70
:: float:: add:: __addsf3 ( a, b)
Original file line number Diff line number Diff line change @@ -181,14 +181,10 @@ macro_rules! add {
181
181
}
182
182
}
183
183
184
- // NOTE(cfg) These are disabled for gnueabihf due to
185
- // https://github.com/rust-lang-nursery/compiler-builtins/issues/90
186
- #[ cfg( not( gnueabi) ) ]
187
184
add ! ( __addsf3: f32 ) ;
188
- #[ cfg( not( gnueabi) ) ]
189
185
add ! ( __adddf3: f64 ) ;
190
186
191
- #[ cfg( all ( test, not ( gnueabi ) ) ) ]
187
+ #[ cfg( test) ]
192
188
mod tests {
193
189
use core:: { f32, f64} ;
194
190
use qc:: { F32 , F64 } ;
Original file line number Diff line number Diff line change 1
1
use core:: mem;
2
- #[ cfg( test) ]
3
- use core:: fmt;
4
2
3
+ // NOTE(cfg) add is disabled for gnueabi due to
4
+ // https://github.com/rust-lang-nursery/compiler-builtins/issues/90
5
+
6
+ #[ cfg( not( gnueabi) ) ]
5
7
pub mod add;
6
8
pub mod pow;
7
9
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ pow!(__powidf2: f64, i32);
31
31
32
32
#[ cfg( test) ]
33
33
mod tests {
34
- use float:: { Float } ;
35
34
use qc:: { I32 , F32 , F64 } ;
36
35
37
36
check ! {
You can’t perform that action at this time.
0 commit comments