[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 14 09:36:56 PDT 2024
================
@@ -2716,6 +2721,18 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
<< "-Wa,--crel" << D.getTargetTriple();
}
}
+ if (Msa) {
+ if (!Triple.isMIPS()) {
+ if (*Msa)
+ D.Diag(diag::err_drv_unsupported_opt_for_target)
----------------
MaskRay wrote:
`D.Diag(diag::err_drv_unsupported_opt_for_target)` << (*Msa ? "-Wa,-mssa" : "-Wa,-mno-ssa") << D.getTargetTriple()`
https://github.com/llvm/llvm-project/pull/99615
More information about the cfe-commits
mailing list