From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7517 invoked by alias); 8 Jan 2003 20:46:11 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7489 invoked by uid 71); 8 Jan 2003 20:46:09 -0000 Date: Wed, 08 Jan 2003 20:46:00 -0000 Message-ID: <20030108204609.7487.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "H. Peter Anvin" Subject: Re: c++/7755: Please make -Wno-deprecated do just that Reply-To: "H. Peter Anvin" X-SW-Source: 2003-01/txt/msg00566.txt.bz2 List-Id: The following reply was made to PR c++/7755; it has been noted by GNATS. From: "H. Peter Anvin" To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hpa@zytor.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/7755: Please make -Wno-deprecated do just that Date: Wed, 08 Jan 2003 12:38:41 -0800 bangerth@dealii.org wrote: > Synopsis: Please make -Wno-deprecated do just that > > State-Changed-From-To: feedback->open > State-Changed-By: bangerth > State-Changed-When: Wed Jan 8 11:53:38 2003 > State-Changed-Why: > The documentation says that -Wno-deprecated is C++ only. > Starting with 3.3, the C front end does indeed reject this > flag, so I guess it erroneously just accepted it, but did > nothing. > > Compiling the code with the C++ front end yields errors > with 3.2.2 and 3.3, and is accepted with 3.4. I think it > should yield an error with 3.4 as well, since the C++ > front end treated __FUNCTION__ differently from the > beginning. I don't know why it does now. > > Since -Wno-deprecated is a C++ option, I change the category > of this report. Given the strange behavior above, shall I > also change the synopsis to something like "Incorrect > behavior of __FUNCTION__"? > If -Wno-deprecated is not the right way to disable this warning, then please do provide another flag to do so. Not being able to selectively squelsh this warning is a total showstopper for being able to use newer gcc's for several projects. Thanks, -hpa