This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [MSP430] Allow interrupt handers to be static and fix __interrupt__ attribute causing an ICE


On 29/05/18 23:55, DJ Delorie wrote:
Jozef Lawrynowicz <jozef.l@mittosystems.com> writes:
If an argument is passed to the interrupt attribute, GCC will create a section
for the interrupt vector when outputting the assembly. This, combined with the
code to ensure the interrupt function doesn't get optimized out, ensures the
symbol for the interrupt function is available when it comes to linking.
I did also test on hardware that static interrupts works as expected, and they
do.
It sounds like things have changed since I first wrote that code, so as
long as it works now, I'm OK with it :-)

Thanks, installed on trunk.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]