chrisnc wrote:

Here is an example of the existing warning in action. 
https://godbolt.org/z/9e84EfeYP
It warns for calling a normal function, but the same function with an interrupt 
attribute does not warn. The `subs pc, lr, 4` in `bar_irq` goes back to `bl 
bar_irq`, creating an infinite loop, where the second `subs pc, lr, 4` from 
`bar_irq` is also unpredictable, because the processor mode will most likely be 
system/user.

https://github.com/llvm/llvm-project/pull/91870
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to