-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate -Csoft-float because it is unsound (and not fixable) #129897
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustbot
added
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Sep 2, 2024
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 2, 2024 15:20
8e55395
to
ab54f40
Compare
Dirbaio
approved these changes
Sep 2, 2024
This comment has been minimized.
This comment has been minimized.
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 2, 2024 15:47
ab54f40
to
45ddafa
Compare
Urgau
reviewed
Sep 2, 2024
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 3, 2024 08:49
45ddafa
to
bf70656
Compare
RalfJung
changed the title
show a warning when -Csoft-float is used on a non-eabihf target
deprecate -Csoft-float because it is unsound (and not fixable)
Sep 3, 2024
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 3, 2024 08:55
bf70656
to
f2c4e12
Compare
This comment has been minimized.
This comment has been minimized.
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 3, 2024 09:44
f2c4e12
to
2ca3496
Compare
Urgau
reviewed
Sep 3, 2024
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 3, 2024 10:21
2ca3496
to
aa81837
Compare
RalfJung
force-pushed
the
soft-float-ignored
branch
from
September 3, 2024 10:23
aa81837
to
914d8f4
Compare
I have changed what the PR does so it now marks |
3 tasks
MCP for this: rust-lang/compiler-team#779. |
Urgau
added
S-waiting-on-MCP
Status: PR has a compiler MCP and is waiting for the compiler MCP to complete.
and removed
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
Sep 4, 2024
Urgau
added
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
and removed
S-waiting-on-MCP
Status: PR has a compiler MCP and is waiting for the compiler MCP to complete.
labels
Sep 15, 2024
Urgau
approved these changes
Sep 15, 2024
@bors r+ |
bors
added
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
Sep 15, 2024
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Sep 15, 2024
…iaskrgr Rollup of 3 pull requests Successful merges: - rust-lang#129897 (deprecate -Csoft-float because it is unsound (and not fixable)) - rust-lang#130339 (Add `core::panic::abort_unwind`) - rust-lang#130384 (compiler: Document AbiAndPrefAlign) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Sep 15, 2024
Rollup merge of rust-lang#129897 - RalfJung:soft-float-ignored, r=Urgau deprecate -Csoft-float because it is unsound (and not fixable) See rust-lang#129893 for details. The general sentiment there seems to be that this flag has no use and sound alternatives exist, so let's add this warning and see if anyone out there disagrees. Also show a different warning on targets where it does nothing (as documented since rust-lang#36261): it seems to correspond to `-mfloat-abi` in GCC/clang, which is an ARM-specific option. To be really sure it does nothing, only forward the flag to LLVM for eabihf targets. This should not change behavior but makes me sleep better ;)
RalfJung
added
the
relnotes
Marks issues that should be documented in the release notes of the next release.
label
Sep 28, 2024
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
relnotes
Marks issues that should be documented in the release notes of the next release.
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #129893 for details. The general sentiment there seems to be that this flag has no use and sound alternatives exist, so let's add this warning and see if anyone out there disagrees.
Also show a different warning on targets where it does nothing (as documented since #36261): it seems to correspond to
-mfloat-abi
in GCC/clang, which is an ARM-specific option. To be really sure it does nothing, only forward the flag to LLVM for eabihf targets. This should not change behavior but makes me sleep better ;)