rust/compiler/rustc_codegen_ssa
Matthias Krüger 13d636dff2
Rollup merge of #93782 - adamgemmell:dev/adagem01/split-pauth, r=Amanieu
Split `pauth` target feature

Per discussion on https://github.com/rust-lang/rust/issues/86941 we'd like to split `pauth` into `paca` and `pacg` in order to better support possible future environments that only have the keys available for address or generic authentication. At the moment LLVM has the one `pauth` target_feature while Linux presents separate `paca` and `pacg` flags for feature detection.

Because the use of [target_feature](https://rust-lang.github.io/rfcs/2045-target-feature.html) will "allow the compiler to generate code under the assumption that this code will only be reached in hosts that support the feature", it does not make sense to simply translate `paca` into the LLVM feature `pauth`, as it will generate code as if `pacg` is available.

To accommodate this we error if only one of the two features is present. If LLVM splits them in the future we can remove this restriction without making a breaking change.

r? ```@Amanieu```
2022-02-11 21:48:48 +01:00
..
src Rollup merge of #93782 - adamgemmell:dev/adagem01/split-pauth, r=Amanieu 2022-02-11 21:48:48 +01:00
Cargo.toml Update thorin-dwp to deduplicate object 2022-01-20 15:09:05 +01:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.