[PATCH] D28820: Warn when calling a non interrupt function from an interrupt on ARM

2017-12-05 Thread KCG via Phabricator via cfe-commits
kc.austin2017 added a comment. In https://reviews.llvm.org/D28820#944865, @jroelofs wrote: > In https://reviews.llvm.org/D28820#944365, @efriedma wrote: > > > > What is the best way to modify the code for this compiler change ? > > > > Currently, the "interrupt" attribute only has an effect on fu

[PATCH] D28820: Warn when calling a non interrupt function from an interrupt on ARM

2017-12-04 Thread KCG via Phabricator via cfe-commits
kc.austin2017 added a comment. In https://reviews.llvm.org/D28820#944365, @efriedma wrote: > > What is the best way to modify the code for this compiler change ? > > Currently, the "interrupt" attribute only has an effect on functions, not > function pointers, so your code won't work the way you

[PATCH] D28820: Warn when calling a non interrupt function from an interrupt on ARM

2017-12-04 Thread KCG via Phabricator via cfe-commits
kc.austin2017 added a comment. Hi , I am looking for some helps on the issue i have in my project after this change for the compiler. typedef void (*callback_t)(uint32_t icciar, void * context); callback_t callee1; void _ _attribute__((interrupt("IRQ"))) __cs3_isr_irq() { callee1(icciar , co