rust/compiler/rustc_codegen_gcc/src
Matthias Krüger 13976f1f25
Rollup merge of #130308 - davidtwco:tied-target-consolidation, r=wesleywiser
codegen_ssa: consolidate tied target checks

Fixes #105110.
Fixes #105111.

`rustc_codegen_llvm` and `rustc_codegen_gcc` duplicated logic for checking if tied target features were partially enabled. This PR consolidates these checks into `rustc_codegen_ssa` in the `codegen_fn_attrs` query, which also is run pre-monomorphisation for each function, which ensures that this check is run for unused functions, as would be expected.

Also adds a test confirming that enabling one tied feature doesn't imply another - the appropriate error for this was already being emitted. I did a bisect and narrowed it down to two patches it was likely to be - something in #128796, probably #128221 or #128679.
2024-10-10 22:00:45 +02:00
..
back Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
intrinsic Use wide pointers consistenly across the compiler 2024-10-04 14:06:48 +02: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/access registers (clobber-only) in s390x inline assembly 2024-09-21 01:51:26 +09:00
attributes.rs codegen_ssa: consolidate tied feature checking 2024-09-24 15:48:49 +01:00
base.rs Merge commit '3187d32079' into subtree-update 2024-09-27 22:00:17 +02:00
builder.rs cg_gcc: Factor out rustc_target::abi 2024-10-08 18:24:56 -07:00
callee.rs Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00
common.rs cg_gcc: Factor out rustc_target::abi 2024-10-08 18:24:56 -07:00
consts.rs Merge commit '3187d32079' into subtree-update 2024-09-27 22:00:17 +02:00
context.rs Merge commit '3187d32079' into subtree-update 2024-09-27 22:00:17 +02:00
coverageinfo.rs Unbox and unwrap the contents of StatementKind::Coverage 2024-03-23 22:05:11 +11:00
debuginfo.rs Merge commit '3187d32079' into subtree-update 2024-09-27 22:00:17 +02:00
declare.rs Merge commit '3187d32079' into subtree-update 2024-09-27 22:00:17 +02:00
errors.rs codegen_ssa: consolidate tied feature checking 2024-09-24 15:48:49 +01:00
gcc_util.rs codegen_ssa: consolidate tied feature checking 2024-09-24 15:48:49 +01:00
int.rs Fmt 2024-09-27 22:09:18 +02:00
lib.rs cg_gcc: Factor out rustc_target::abi 2024-10-08 18:24:56 -07:00
mono_item.rs Merge commit '3187d32079' 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: Factor out rustc_target::abi 2024-10-08 18:24:56 -07:00