re PR target/70713 (msp430 interrupt attribute prevents overriding weak symbols)
authorJoe Seymour <joe.s@somniumtech.com>
Tue, 13 Sep 2016 20:06:47 +0000 (20:06 +0000)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 13 Sep 2016 20:06:47 +0000 (16:06 -0400)
commita713b234edc3b9e76c9abc593a5872415d7d225a
tree61d322b2d24dced2079d0bef205cefe3548fede8
parent8e14a10cab52b37c56019b738011f8e4cef28d5a
re PR target/70713 (msp430 interrupt attribute prevents overriding weak symbols)

2016-09-13  Joe Seymour  <joe.s@somniumtech.com>

gcc/
PR target/70713
* config/msp430/msp430.c (msp430_start_function): Emit an error
if a function is both weak and specifies an interrupt number.

gcc/testsuite/
PR target/70713
* gcc.target/msp430/function-attributes-1.c: New test.
* gcc.target/msp430/function-attributes-2.c: New test.
* gcc.target/msp430/function-attributes-3.c: New test.

From-SVN: r240123
gcc/ChangeLog
gcc/config/msp430/msp430.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/function-attributes-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/msp430/function-attributes-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/msp430/function-attributes-3.c [new file with mode: 0644]