207bc77e15
`rustc_codegen_llvm` and `rustc_codegen_gcc` duplicated logic for checking if tied target features were partially enabled. This commit 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.
27 lines
884 B
Plaintext
27 lines
884 B
Plaintext
error: the target features paca, pacg must all be either enabled or disabled together
|
|
--> $DIR/tied-features.rs:10:5
|
|
|
|
|
LL | #[target_feature(enable = "pacg")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: add the missing features in a `target_feature` attribute
|
|
|
|
error: the target features paca, pacg must all be either enabled or disabled together
|
|
--> $DIR/tied-features.rs:22:1
|
|
|
|
|
LL | #[target_feature(enable = "paca")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: add the missing features in a `target_feature` attribute
|
|
|
|
error: the target features paca, pacg must all be either enabled or disabled together
|
|
--> $DIR/tied-features.rs:35:1
|
|
|
|
|
LL | #[target_feature(enable = "paca")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: add the missing features in a `target_feature` attribute
|
|
|
|
error: aborting due to 3 previous errors
|
|
|