This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR preprocessor/16950: [3.5 regression]: -Wno-deprecated doesn't work
- From: "H. J. Lu" <hjl at lucon dot org>
- To: dj at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 9 Aug 2004 14:03:17 -0700
- Subject: Re: PR preprocessor/16950: [3.5 regression]: -Wno-deprecated doesn't work
- References: <20040809210157.GA15207@lucon.org>
On Mon, Aug 09, 2004 at 02:01:57PM -0700, H. J. Lu wrote:
> Hi DJ,
>
> Could you please take a look at it? Your patch:
>
> http://gcc.gnu.org/ml/gcc/2004-06/msg01541.html
>
> removed setting of warn_deprecated in c_common_handle_option in
> c-opts.c. It isn't set anywhere in gcc. But it seems that before
> Aug. 6, 2004, __DEPRECATED was defined when -Wno-deprecated was
^^^^
I meant to say "wasn't".
> used. But today, __DEPRECATED is always defined due to
>
> if (warn_deprecated)
> cpp_define (pfile, "__DEPRECATED");
>
> in c_cpp_builtins in c-cppbuiltin.c.
>
>
> H.J.