[llvm-bugs] [Bug 35527] New: ARM interrupt attribute warning doesn't correctly handle function pointers

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 5 03:28:29 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35527

            Bug ID: 35527
           Summary: ARM interrupt attribute warning doesn't correctly
                    handle function pointers
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jonathan at codesourcery.com
                CC: llvm-bugs at lists.llvm.org

https://reviews.llvm.org/D28820

```
typedef void __attribute__((interrupt("IRQ"))) (*interrupt_callback_t)(uint32_t
i, void *ctx);
interrupt_callback_t interrupt_callee;

typedef void (*callback_t)(uint32_t i, void *ctx);
callback_t callee;

void __attribute((interrupt("IRQ"))) __cs3_isr_irq() {
   interrupt_callee(42, NULL); // don't warn here
   callee(37, NULL); // do warn here
}
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171205/e2cf050d/attachment.html>


More information about the llvm-bugs mailing list