https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80993
Bug ID: 80993
Summary: [msp430] __attribute__((interrupt)) should imply
__attribute__((used))
Product: gcc
Version: 6.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: awygle at gmail dot com
Target Milestone: ---
Enabling link-time optimization on the MSP430 causes any interrupt handlers
which are not called directly to be cheerfully eaten. Thus any interrupt causes
the processor to execute essentially random data, resulting in uncontrolled
jumps and general badness. This problem can be resolved with
__attribute__((used)), which should be implied by __attribute__((interrupt)).