]> granicus.if.org Git - clang/commit
[MSP430] Improve support of 'interrupt' attribute
authorAnton Korobeynikov <anton@korobeynikov.info>
Wed, 16 Jan 2019 13:44:01 +0000 (13:44 +0000)
committerAnton Korobeynikov <anton@korobeynikov.info>
Wed, 16 Jan 2019 13:44:01 +0000 (13:44 +0000)
commit7e968f8a6a2b7d07835493c04dd1989d46970599
treeb75dc398ade59255f9a040800e9310e97bcaa16a
parent7421ac711a35607bc758775fbbc381c855608415
[MSP430] Improve support of 'interrupt' attribute

* Accept as an argument constants in range 0..63 (aligned with TI headers and linker scripts provided with TI GCC toolchain).
* Emit function attribute 'interrupt'='xx' instead of aliases (used in the backend to create a section for particular interrupt vector).
* Add more diagnostics.

Patch by Kristina Bessonova!

Differential Revision: https://reviews.llvm.org/D56663

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351344 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/TargetInfo.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGen/attr-msp430.c [new file with mode: 0644]
test/Sema/attr-msp430.c