This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] __attribute__ ((deprecated))


At 1:03 AM +0100 5/5/01, Joseph S. Myers wrote:

>On Fri, 4 May 2001, Ira Ruben wrote:
>
>>  This stuff will obviously be consolidated into appropriate
>>  documentation when the dust settles.
>
>No, even a preliminary patch should add documentation to the manual to
>help make it clear what the exact semantics intended to be implemented
>are.
>
>I'd suggest making the option on by default.  Indeed, I'd suggest bringing
>the -Wno-deprecated G++ option over to be a common option for all front
>ends, on by default, made of two parts, one for deprecated language
>features (-Wdeprecated-language?) and one, as here, for deprecated library
>features - with both on by default, and disabled separately or disabled
>together by using -Wno-deprecated.

I sort of agree with you about the -W's.  Indeed I was going to combine
the C++ one with mine until Stan talked me out of it :-)  However, 
there seems to
be precedent for this in the -Wunused... guys.

As for the default, it is ON as shown in the toplev.c patch, i.e.,

+ int warn_deprecated_decl = 1;

We'll work on the docs for this.  Stay tuned...

Ira


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]