]> granicus.if.org Git - clang/commit
Warn when calling a non interrupt function from an interrupt on ARM
authorJonathan Roelofs <jonathan@codesourcery.com>
Wed, 18 Jan 2017 15:31:11 +0000 (15:31 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Wed, 18 Jan 2017 15:31:11 +0000 (15:31 +0000)
commit751bee9c5b05c6d08e58a5d1c6ed70ec10dede8e
tree2e4939a59c8db00faed1c8d7ad8f219aea31b7a1
parent7006d279f7252d4ba364fb85e89ebb4cb8b626a6
Warn when calling a non interrupt function from an interrupt on ARM

The idea for this originated from a really tricky bug: ISRs on ARM don't
automatically save off the VFP regs, so if say, memcpy gets interrupted and the
ISR itself calls memcpy, the regs are left clobbered when the ISR is done.

https://reviews.llvm.org/D28820

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292375 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/Sema/arm-interrupt-attr.c