From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22249 invoked by alias); 4 Dec 2010 18:24:05 -0000 Received: (qmail 22235 invoked by uid 22791); 4 Dec 2010 18:24:04 -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:23:57 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/46802] New: GCC option handling change breaks dejagnu X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail 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: 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:24: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/msg00424.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46802 Summary: GCC option handling change breaks dejagnu Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned@gcc.gnu.org ReportedBy: hjl.tools@gmail.com CC: jsm28@gcc.gnu.org GCC 4.6 failed binutils tests: g++: warning: switch '-fvtable-gc' is no longer supported g++: warning: switch '-fvtable-gc' is no longer supported ERROR: /export/gnu/import/git/binutils/ld/testsuite/ld-selective/3.cc: compilation failed UNRESOLVED: selective4 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 Before GCC 4.6, we have [hjl@gnu-6 tmp]$ g++ -fvtable-gc -S x.i cc1plus: warning: switch \u2018-fvtable-gc\u2019 is no longer supported GCC 4.6 has [hjl@gnu-6 tmp]$ /usr/gcc-4.6/bin/g++ -fvtable-gc -S x.i g++: warning: switch \u2018-fvtable-gc\u2019 is no longer supported This change breaks prune_warnings.