From patchwork Thu May 26 20:20:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 97622 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 B851BB6F8E for ; Fri, 27 May 2011 06:19:23 +1000 (EST) Received: (qmail 32147 invoked by alias); 26 May 2011 20:19:21 -0000 Received: (qmail 32135 invoked by uid 22791); 26 May 2011 20:19:21 -0000 X-SWARE-Spam-Status: No, hits=-1.8 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; Thu, 26 May 2011 20:19:04 +0000 Received: (qmail 26828 invoked from network); 26 May 2011 20:19:04 -0000 Received: from unknown (HELO ?192.168.1.4?) (janisjo@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 May 2011 20:19:04 -0000 Message-ID: <4DDEB60D.8000807@codesourcery.com> Date: Thu, 26 May 2011 13:20:29 -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] gcc.dg/march.c: expect extra message for ARM 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 Changes went into ARM support recently to add an informative note after an error about an invalid argument to -march=. This patch looks for that message on ARM targets and allows the test to once again pass. OK for trunk? Index: gcc.dg/march.c =================================================================== --- gcc.dg/march.c (revision 163294) +++ gcc.dg/march.c (working copy) @@ -2,5 +2,6 @@ /* { dg-skip-if "" { *-*-* } { "-march=*" } { "" } } */ /* { dg-options "-march=foo" } */ /* { dg-error "march" "" { target *-*-* } 0 } */ +/* { dg-message "note: valid arguments" "note" { target arm*-*-* } 0 } */ /* { dg-bogus "mtune" "" { target *-*-* } 0 } */ int i;