Joerg Wunsch wrote on Donnerstag, 24. August 2006 22:05 :
> As Eric Weddington wrote:
> > Should __attribute__((deprecated)) be used in the definition of
> > SIGNAL() in interrupt.h? My concern would be that it is applied to
> > the use of the function name, which in this case would be __vector_X
> > (or somesuch) and the warning would be confusing to the end user.
>
> Yes, I think that's what will happen, and will confuse the users even
> more I'm afraid.  There's unfortunately no method around that would
> warn about the use (not the definition) of a deprecated macro.

One possible work-around for this issue would be to re-define the ISR API so 
that, e.g., the SIGNAL macro expands to two independent expressions:

1.) a asm(" .global vector_xx\nvector_xx .equ 
speaking_function_name_entry_label");
2.) a function declaration with a speaking name.

After this change, the deprecated macro should be readily useable.

Bjoern.


_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to