Skip to content

Commit 4cb694e

Browse files
authored
Merge pull request #513 from nbdd0121/rust
rust: compile `libcore` with `no_fp_fmt_parse`
2 parents a69e891 + 00015bf commit 4cb694e

File tree

2 files changed

+1
-78
lines changed

2 files changed

+1
-78
lines changed

rust/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ $(objtree)/rust/kernel.o: $(srctree)/rust/kernel/lib.rs $(objtree)/rust/alloc.o
326326
# Targets that need to expand twice
327327
.SECONDEXPANSION:
328328
$(objtree)/rust/core.o: private skip_clippy = 1
329+
$(objtree)/rust/core.o: private rustc_target_flags = --cfg no_fp_fmt_parse
329330
$(objtree)/rust/core.o: $$(RUST_LIB_SRC)/core/src/lib.rs FORCE
330331
$(call if_changed_dep,rustc_library)
331332

rust/compiler_builtins.rs

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -36,84 +36,6 @@ macro_rules! define_panicking_intrinsics(
3636
}
3737
);
3838

39-
define_panicking_intrinsics!("`f32` should not be used", {
40-
__addsf3,
41-
__addsf3vfp,
42-
__aeabi_fcmpeq,
43-
__aeabi_ul2f,
44-
__divsf3,
45-
__divsf3vfp,
46-
__eqsf2,
47-
__eqsf2vfp,
48-
__fixsfdi,
49-
__fixsfsi,
50-
__fixsfti,
51-
__fixunssfdi,
52-
__fixunssfsi,
53-
__fixunssfti,
54-
__floatdisf,
55-
__floatsisf,
56-
__floattisf,
57-
__floatundisf,
58-
__floatunsisf,
59-
__floatuntisf,
60-
__gesf2,
61-
__gesf2vfp,
62-
__gtsf2,
63-
__gtsf2vfp,
64-
__lesf2,
65-
__lesf2vfp,
66-
__ltsf2,
67-
__ltsf2vfp,
68-
__mulsf3,
69-
__mulsf3vfp,
70-
__nesf2,
71-
__nesf2vfp,
72-
__powisf2,
73-
__subsf3,
74-
__subsf3vfp,
75-
__unordsf2,
76-
});
77-
78-
define_panicking_intrinsics!("`f64` should not be used", {
79-
__adddf3,
80-
__adddf3vfp,
81-
__aeabi_dcmpeq,
82-
__aeabi_ul2d,
83-
__divdf3,
84-
__divdf3vfp,
85-
__eqdf2,
86-
__eqdf2vfp,
87-
__fixdfdi,
88-
__fixdfsi,
89-
__fixdfti,
90-
__fixunsdfdi,
91-
__fixunsdfsi,
92-
__fixunsdfti,
93-
__floatdidf,
94-
__floatsidf,
95-
__floattidf,
96-
__floatundidf,
97-
__floatunsidf,
98-
__floatuntidf,
99-
__gedf2,
100-
__gedf2vfp,
101-
__gtdf2,
102-
__gtdf2vfp,
103-
__ledf2,
104-
__ledf2vfp,
105-
__ltdf2,
106-
__ltdf2vfp,
107-
__muldf3,
108-
__muldf3vfp,
109-
__nedf2,
110-
__nedf2vfp,
111-
__powidf2,
112-
__subdf3,
113-
__subdf3vfp,
114-
__unorddf2,
115-
});
116-
11739
define_panicking_intrinsics!("`i128` should not be used", {
11840
__ashrti3,
11941
__muloti4,

0 commit comments

Comments
 (0)