This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __attribute__ ((deprecated))
- To: Stan Shebs <shebs at apple dot com>
- Subject: Re: __attribute__ ((deprecated))
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 23 Apr 2001 19:50:16 -0700
- CC: gcc at gcc dot gnu dot org
- References: <3AE4E4F5.D2817F@apple.com>
Stan Shebs <shebs@apple.com> writes:
> warning: worse_fn is deprecated; use new_good_fn instead
>
> Before we jump into implementing this, we'd like to get some input.
>
> 1. Does this seem like a worthwhile feature to add?
> 2. If no, what would be an equivalent alternative?
> 3. If yes, what are the implementation caveats to watch out for?
> (needs to work for all of C/ObjC/C++)
It seems worthwhile. The ELF people have never needed it because the
ELF linker can warn when a particular function is used, but it strikes
me that you could integrate the two features and have the new attribute
put the right things in the object file to trigger the linker warning,
as well as warning at source level.
--
- Geoffrey Keating <geoffk@geoffk.org>