As Bernd Trog wrote: > > * include/avr/interrupt.h: Add the > > 'externally_visible' attribute on all interrupt > > service routine macros.
> Note that 'externally_visible' is a new attribute. Introduced with > 4.1.0, unknown to versions <4.1.0. Thanks for the heads-up. That means we have to encapsulate that using some preprocessor magic like: #if __GNUC__ >= 4 # define __INTR_ATTRS used, externally_visible #else /* GCC < 4.x */ # define __INTR_ATTRS used #endif ... #define ISR(vector) \ void vector (void) __attribute__ ((signal, __INTR_ATTRS)); \ void vector (void) etc. (Also needed in <compat/deprecated.h> and in the documentation.) -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
