From patchwork Tue May 24 17:41:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 97189 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id E6441B6F90 for ; Wed, 25 May 2011 03:40:57 +1000 (EST) Received: (qmail 2411 invoked by alias); 24 May 2011 17:40:55 -0000 Received: (qmail 2399 invoked by uid 22791); 24 May 2011 17:40:54 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 17:40:40 +0000 Received: (qmail 14268 invoked from network); 24 May 2011 17:40:40 -0000 Received: from unknown (HELO ?192.168.1.4?) (janisjo@127.0.0.2) by mail.codesourcery.com with ESMTPA; 24 May 2011 17:40:40 -0000 Message-ID: <4DDBEDE7.3000009@codesourcery.com> Date: Tue, 24 May 2011 10:41:59 -0700 From: Janis Johnson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [testsuite] ignore irrelevant warning in g++.dg/abi/packed1.C X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Test g++.dg/abi/packed1.C triggers a warning for several targets. That warning is not relevant to the purpose of the test, as shown by the fact that the dg-warning directive was added later and additional targets keep trickling in. Rather than continue to add to the list of targets for the warning, this patch ignores the warning when it appears. Tested on arm-none-linux-gnueabi. OK for trunk and 4.6? 2011-05-24 Janis Johnson * g++.dg/abi/packed1.C: Ignore warning. Index: g++.dg/abi/packed1.C =================================================================== --- g++.dg/abi/packed1.C (revision 174094) +++ g++.dg/abi/packed1.C (working copy) @@ -1,10 +1,12 @@ // PR c++/41788 // { dg-options "-Wpacked" } // { dg-do run } +// Ignore a warning that is irrelevant to the purpose of this test. +// { dg-prune-output "inefficient.*vptr" } extern "C" void abort (); -struct INNER { // { dg-warning "inefficient.*vptr" "" { target alpha*-*-* ia64-*-* hppa*-*-* mips-sgi-irix* sparc*-*-* spu-*-* sh*-*-* } } +struct INNER { virtual int foo() const { return 1; } } __attribute__ ((packed));