boomanaiden154 wrote:

> Using [[gnu::target]] at all is already opening yourself up for massive ABI 
> headaches. This use case of double-pumping the existing vector ABI in a 
> single TU should be well defined and I don't think we should warn on it.

Do you have other examples? I'm only aware of this one.

It might be well-defined, but there are certainly instances where we should be 
warning. If a function expects vectors to be passed on the stack and someone 
calls that function such that vectors are passed in registers, we should 
probably be warning in that case, and that's the intention of `-Wps-abi` in gcc 
as far as I'm aware.

https://github.com/llvm/llvm-project/pull/199091
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to