[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Use of deprecated attribute
From: |
Björn Haase |
Subject: |
Re: [avr-libc-dev] Use of deprecated attribute |
Date: |
Mon, 28 Aug 2006 12:55:11 +0200 |
User-agent: |
KMail/1.7.1 |
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.