using the interrupt attribute

David Korn
Fri Oct 19 07:00:00 GMT 2001

>-----Original Message-----
>From: Richard Slaughter [ ]
>Sent: 19 October 2001 14:56

>I'm using the arm-elf-gcc compiler version 2.95.2-6 under cygwin for the
>atmel arm processor at91fr40807.
>Should the following function compile?
>Can anyone point me to an example of how to use this option?
>Class foo
>static f(void) __attribute__ ((interrupt("IRQ")));

  Nothing in the documentation for 2.95.2/3 suggests that this attribute
exists for ARM targets , although I know there are some patches out there
that add it.  I don't know if one of the cygwin modifications was to
include that option: it might be in the GNUpro variant only.  Anyway, at a
guess, I'd say 'get rid of that "IRQ" string and the brackets enclosing it
and just try'

static f(void) __attribute__ ((interrupt));

>also does the
>#pragma interrupt
>#pragma nointerrupt
> and  work?

  What #pragma interrupt?  On the whole, gcc doesn't use #pragma.

Burn your ID card!
Help support the campaign, copy this into your .sig!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list