-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Various minor target feature cleanups around backchain, crt-static, reserve-x18 #142500
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
base: master
Are you sure you want to change the base?
Conversation
This does change the logic a bit: previously, we didn't forward reverse implications of negated features to the backend, instead relying on the backend to handle the implication itself.
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
Some changes occurred in compiler/rustc_codegen_ssa Some changes occurred in compiler/rustc_codegen_ssa/src/codegen_attrs.rs Some changes occurred in compiler/rustc_codegen_gcc |
This comment has been minimized.
This comment has been minimized.
92baddb
to
3a6d0c2
Compare
r? codegen |
☔ The latest upstream changes (presumably #138165) made this pull request unmergeable. Please resolve the merge conflicts. |
Based on top of #140920, only the last commit is new.
cfg(target_feature = "backchain")
(s390x target feature) be enabled? #142412.-Ctarget-feature
that only care about actual target features (and not "crt-static") have it. Previously, we actually setcfg(target_feature = "crt-static")
twice: once in the backend target feature logic, and once specifically for that one feature. IIUC, some targets are meant to ignore-Ctarget-feature=+crt-static
, it seems like before this PR that flag still incorrectly enabledcfg(target_feature = "crt-static")
(but I didn't test this).-Z
flag.