]> granicus.if.org Git - clang/commit
[AVR] Add support for the 'interrupt' and 'naked' attributes
authorDylan McKay <me@dylanmckay.io>
Wed, 8 Feb 2017 05:09:26 +0000 (05:09 +0000)
committerDylan McKay <me@dylanmckay.io>
Wed, 8 Feb 2017 05:09:26 +0000 (05:09 +0000)
commit8a58cc33d0feaba2928785482e4f04062493ad05
treea151656f01a0242e96eca0527aceaef5a6296b89
parent52f027dd7115ad243a927cff142f730dbc539e6f
[AVR] Add support for the 'interrupt' and 'naked' attributes

Summary:
This teaches clang how to parse and lower the 'interrupt' and 'naked'
attributes.

This allows interrupt signal handlers to be written.

Reviewers: aaron.ballman

Subscribers: malcolm.parsons, cfe-commits

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

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