rust/compiler/rustc_codegen_gcc/src
bors e8c698bb3b Auto merge of #129884 - RalfJung:forbidden-target-features, r=workingjubilee
mark some target features as 'forbidden' so they cannot be (un)set with -Ctarget-feature

The context for this is https://github.com/rust-lang/rust/issues/116344: some target features change the way floats are passed between functions. Changing those target features is unsound as code compiled for the same target may now use different ABIs.

So this introduces a new concept of "forbidden" target features (on top of the existing "stable " and "unstable" categories), and makes it a hard error to (un)set such a target feature. For now, the x86 and ARM feature `soft-float` is on that list. We'll have to make some effort to collect more relevant features, and similar features from other targets, but that can happen after the basic infrastructure for this landed. (These features are being collected in https://github.com/rust-lang/rust/issues/131799.)

I've made this a warning for now to give people some time to speak up if this would break something.

MCP: https://github.com/rust-lang/compiler-team/issues/780
2024-11-05 16:25:45 +00:00
..
back Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
intrinsic cg_gcc: `rustc_abi::Abi` => `BackendRepr` 2024-10-29 15:01:01 -07:00
abi.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
allocator.rs Replace -Z default-hidden-visibility with -Z default-visibility 2024-10-01 22:32:13 +10:00
archive.rs Move computation of decorated names out of the create_dll_import_lib method 2024-07-30 10:32:32 +00:00
asm.rs Support clobber_abi and vector registers (clobber-only) in PowerPC inline assembly 2024-11-02 20:26:08 +09:00
attributes.rs codegen_ssa: consolidate tied feature checking 2024-09-24 15:48:49 +01:00
base.rs Merge commit '3187d32079b817522cc17413ec9185b130daf693' into subtree-update 2024-09-27 22:00:17 +02:00
builder.rs cg_gcc: `rustc_abi::Abi` => `BackendRepr` 2024-10-29 15:01:01 -07:00
callee.rs Effects cleanup 2024-10-26 10:19:07 +08:00
common.rs cg_gcc: Factor out rustc_target::abi 2024-10-08 18:24:56 -07:00
consts.rs Reduce dependence on the target name 2024-11-03 18:29:01 +00:00
context.rs rust_for_linux: -Zregparm=<N> commandline flag for X86 (#116972) 2024-10-18 00:29:31 +07:00
coverageinfo.rs Unbox and unwrap the contents of `StatementKind::Coverage` 2024-03-23 22:05:11 +11:00
debuginfo.rs Merge commit '3187d32079b817522cc17413ec9185b130daf693' into subtree-update 2024-09-27 22:00:17 +02:00
declare.rs Merge commit '3187d32079b817522cc17413ec9185b130daf693' into subtree-update 2024-09-27 22:00:17 +02:00
errors.rs mark some target features as 'forbidden' so they cannot be (un)set 2024-11-04 22:56:47 +01:00
gcc_util.rs mark some target features as 'forbidden' so they cannot be (un)set 2024-11-04 22:56:47 +01:00
int.rs Fmt 2024-09-27 22:09:18 +02:00
lib.rs mark some target features as 'forbidden' so they cannot be (un)set 2024-11-04 22:56:47 +01:00
mono_item.rs Merge commit '3187d32079b817522cc17413ec9185b130daf693' into subtree-update 2024-09-27 22:00:17 +02:00
type_.rs Rename supertraits of `CodegenMethods`. 2024-09-17 10:24:43 +10:00
type_of.rs cg_gcc: `rustc_abi::Abi` => `BackendRepr` 2024-10-29 15:01:01 -07:00