Merge pull request #660 from rust-lang/fix/disabling-sse

Stop ignoring the feature -sse
This commit is contained in:
antoyo 2025-05-06 18:21:42 -04:00 committed by GitHub
commit 633ecc82d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,14 +88,8 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
let target_features = function_features
.iter()
.filter_map(|feature| {
// FIXME(antoyo): for some reasons, disabling SSE results in the following error when
// compiling Rust for Linux:
// SSE register return with SSE disabled
// TODO(antoyo): support soft-float and retpoline-external-thunk.
if feature.contains("soft-float")
|| feature.contains("retpoline-external-thunk")
|| *feature == "-sse"
{
// TODO(antoyo): support soft-float.
if feature.contains("soft-float") {
return None;
}