From patchwork Thu Feb 14 10:01:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 220406 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 688F22C0077 for ; Thu, 14 Feb 2013 21:02:38 +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=1361440960; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Subject:Date: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=Z4PDCKLgoHSwPGRAaFKVT6RcWTw=; b=jWWELE0nY3t7YtN a4w95vrjjD4CEMQI0ARuUKWN4EZJAsoKLHXgathB9Ht4qbJwwzrt6Ek/Xa8wPF4C c+doIAOWsadKmRVOmrQETlSRM+YHrelqFKV9qJE41tsYW1kfXNJxcYAtLT7/X3t7 +00FRAxmE4kdDHLXFJAuxNX8kY1A= 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:Date: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=riX8+mc4aAfhCPxORJdmk3VYFakm8DVJwpxTqcPbtjTRssrDLnhiqfz3bj3bhT tncQ9jHUnQhDXqMZisEn9lZ76xTFvG5oTE2qFaZNbaBVoGXdlJvXnhTC5kzi6/i2 iImoG0C1LGJSoM3ihiOw+j1YfbGASVcmm4PxAYujXP/ec=; Received: (qmail 1462 invoked by alias); 14 Feb 2013 10:02:28 -0000 Received: (qmail 1449 invoked by uid 22791); 14 Feb 2013 10:02:27 -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 10:01:45 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 75C6581 for ; Thu, 14 Feb 2013 11:01:43 +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 g7wYpYcg8kN5 for ; Thu, 14 Feb 2013 11:01:42 +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 010A180 for ; Thu, 14 Feb 2013 11:01:41 +0100 (CET) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id r1EA1fSd017467; Thu, 14 Feb 2013 11:01:41 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [testsuite] Fix gcc.dg/debug/dwarf2/pr53948.c with Sun as Date: 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 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. Rainer 2013-02-13 Rainer Orth * gcc.dg/debug/dwarf2/pr53948.c: Allow for / and ! as comment characters. # HG changeset patch # Parent ed5415e505004fb993791f63f62bc9a6da314167 Fix gcc.dg/debug/dwarf2/pr53948.c with Sun as 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|\[#/!\] line 8" } } */ int f (register int a, register int b) {