[clang] [StackProtector] Do not emit the stack protector on GPU architectures (PR #70799)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 31 10:23:57 PDT 2023


jhuber6 wrote:

> Is there some reason stack protectors don't make sense on GPU targets? Or is the issue just that the GPU targets in question don't have the necessary runtime support?

It's more of the latter as GPUs don't really have much of a runtime. That's why I didn't want to completely filter this out at the driver level and instead made it more of a "TODO". However, I don't know if we'd really have much of a use for stack protectors. Maybe @arsenm could help explain that further.

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


More information about the cfe-commits mailing list