From patchwork Thu Feb 14 11:48:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 220426 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 0C8352C008C for ; Thu, 14 Feb 2013 22:48:29 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1361447311; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Subject:References:Date:In-Reply-To: Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=vwCUDT3c5yxqF1uuIL4itXJrIBI=; b=x2p48fBMUiazkFdjs/l6UX5p+h+h+JGpygqKQtwI8hAutnhBu2nTrR1K4Gqtrd KZPZ+Y4Tbvxlux1aP1dLDCVMZDckVRdOmzIT4prsYhal43VPlW13LUfj12El4iXB 3x9ljCu46ZEIE9Legmt3QFl0clrZ0zvEu9dHclZijm8sM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=EK5oMTBooTFW1pfvhA9jpq7ruM+pRzH6cJoyR0ROLi203Y8etOp+d2VNbGcxRa GqOeBnL38cVyevmaev3U9qHOfjPb0XVSp2CvPteBTe7qXyh/8HA1B6QNymWq4CCJ BcVbDERFIzoRU8haA8VuI9ZeP2M0jhXD3rZpeZlWYIgik=; Received: (qmail 30145 invoked by alias); 14 Feb 2013 11:48:18 -0000 Received: (qmail 30136 invoked by uid 22791); 14 Feb 2013 11:48:17 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Feb 2013 11:48:05 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 2978E507 for ; Thu, 14 Feb 2013 12:48:04 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Rx9mzE2vkw9o for ; Thu, 14 Feb 2013 12:48:02 +0100 (CET) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 5835C506 for ; Thu, 14 Feb 2013 12:48:02 +0100 (CET) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id r1EBm1dx017513; Thu, 14 Feb 2013 12:48:02 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: Re: [testsuite] Fix gcc.dg/debug/dwarf2/pr53948.c with Sun as References: Date: Thu, 14 Feb 2013 12:48:01 +0100 In-Reply-To: (Rainer Orth's message of "Thu, 14 Feb 2013 11:01:40 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (usg-unix-v) MIME-Version: 1.0 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 Rainer Orth writes: > The new gcc.dg/debug/dwarf2/pr53948.c test was failing on Solaris with > Sun as: i386 uses / as comment character, while sparc uses !. The > following patch accounts for that. > > Tested on i386-pc-solaris2.10, sparc-sun-solaris2.11, and > x86_64-unknown-linux-gnu, installed on mainline. It turned out I need one further adjustment to make the test pass on i386-pc-solaris2.9, which uses "/ " comments instead of just "/". Tested with the appropriate runtest invocations on i386-pc-solaris2.9, i386-pc-solaris2.10, sparc-sun-solaris2.11, and x86_64-unknown-linux-gnu, installed on mainline. Rainer 2013-02-14 Rainer Orth * gcc.dg/debug/dwarf2/pr53948.c: Allow for more whitespace. diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c @@ -1,7 +1,7 @@ /* Test that we have line information for the line with local variable initializations. */ /* { dg-options "-O0 -g -dA" } */ -/* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\] line 8" } } */ +/* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\]\[ \t\]+line 8" } } */ int f (register int a, register int b) {