From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15445 invoked by alias); 4 Dec 2010 18:45:05 -0000 Received: (qmail 15431 invoked by uid 22791); 4 Dec 2010 18:45:03 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_FV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 04 Dec 2010 18:44:59 +0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/46802] GCC option handling change breaks dejagnu X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 04 Dec 2010 18:45:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg00426.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46802 --- Comment #1 from joseph at codesourcery dot com 2010-12-04 18:44:51 UTC --- On Sat, 4 Dec 2010, hjl.tools at gmail dot com wrote: > g++: warning: switch '-fvtable-gc' is no longer supported > g++: warning: switch '-fvtable-gc' is no longer supported This is unrelated to the DejaGnu code you quote. > prune_warnings in dejagnu has > > regsub -all "(^|\n)(cc1: warning: -g is only supported when using GAS on > this processor\[^\n\]*\ncc1: warning:\[^\n\]*\n?)+" $text "\\1" text > regsub -all "(^|\n)(cc1plus: warning: -g is only supported when using GAS > on this processor\[^\n\]*\ncc1plus: warning:\[^\n\]*\n?)+" $text "\\1" text None of this DejaGnu code appears to do anything with -fvtable-gc diagnostics, unless there was a previous warning about -g that you didn't quote. The ld testsuite tries to skip these tests case on the compiler version number - is that broken? In any case, it's clearly better for warnings to start "g++:" instead of "cc1plus:". The cc1plus binary is an internal implementation detail; diagnostics should refer to the user-visible binary, which is g++ here.