[clang] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 14:58:38 PST 2023


================
@@ -1076,6 +1076,16 @@ void CodeGenModule::Release() {
                                 "sign-return-address-with-bkey", 1);
   }
 
+  if (Arch == llvm::Triple::aarch64 || Arch == llvm::Triple::aarch64_be) {
----------------
efriedma-quic wrote:

Module-level attributes tend to lead to issues with LTO.  I mean, for compiler-generated functions, there's no obvious choice, so we just kind of have to pick something.  But for other functions, I think it makes sense to try to respect what the user specified for each input module.  That would suggest we should emit both a module attribute and a function attribute.

https://github.com/llvm/llvm-project/pull/68993


More information about the cfe-commits mailing list