Skip to content

Commit

Permalink
Merge pull request #572 from nikic/remove-80-bit-builtins
Browse files Browse the repository at this point in the history
Remove 80-bit builtins entirely
  • Loading branch information
Amanieu authored Feb 4, 2024
2 parents 8f778e4 + 9e1e390 commit 6793c98
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,6 @@ mod c {
("__truncdfhf2", "truncdfhf2.c"),
("__truncsfhf2", "truncsfhf2.c"),
]);

if target_arch == "x86" || target_arch == "x86_64" {
// Only add 80-bit long double sources on x86.
sources.extend(&[
("__divxc3", "divxc3.c"),
("__mulxc3", "mulxc3.c"),
("__powixf2", "powixf2.c"),
]);
}
}

// When compiling in rustbuild (the rust-lang/rust repo) this library
Expand Down Expand Up @@ -356,29 +347,12 @@ mod c {
]);
}

if target_env == "msvc" {
if target_arch == "x86_64" {
sources.extend(&[("__floatdixf", "x86_64/floatdixf.c")]);
}
} else {
// None of these seem to be used on x86_64 windows, and they've all
// got the wrong ABI anyway, so we want to avoid them.
if target_os != "windows" {
if target_arch == "x86_64" {
sources.extend(&[
("__floatdixf", "x86_64/floatdixf.c"),
("__floatundixf", "x86_64/floatundixf.S"),
]);
}
}

if target_env != "msvc" {
if target_arch == "x86" {
sources.extend(&[
("__ashldi3", "i386/ashldi3.S"),
("__ashrdi3", "i386/ashrdi3.S"),
("__divdi3", "i386/divdi3.S"),
("__floatdixf", "i386/floatdixf.S"),
("__floatundixf", "i386/floatundixf.S"),
("__lshrdi3", "i386/lshrdi3.S"),
("__moddi3", "i386/moddi3.S"),
("__muldi3", "i386/muldi3.S"),
Expand Down

0 comments on commit 6793c98

Please sign in to comment.