MSP430: Allow interrupt handlers to be static
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 6 Jun 2018 11:49:20 +0000 (11:49 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Wed, 6 Jun 2018 11:49:20 +0000 (11:49 +0000)
commitd71488c017b4ebb932cf2b4a43656e1eda670b23
tree462308a806f1c8964920dce9f4e931c9209bdc9e
parent7db54ccd8a2b8a2c89f9cf38f716974aac27fa62
MSP430: Allow interrupt handlers to be static

* gcc/config/msp430/msp430.c (msp430_attr): Allow interrupt handlers
to be static and remove check on interrupt attribute name.

gcc/testsuite/gcc.target/msp430/
* function-attributes-4.c: New test.
* static-interrupts.c: New test.

From-SVN: r261229
gcc/ChangeLog
gcc/config/msp430/msp430.c
gcc/testsuite/gcc.target/msp430/function-attributes-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/msp430/static-interrupts.c [new file with mode: 0644]