From patchwork Mon Apr 29 13:33:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumar Selvaraj X-Patchwork-Id: 240370 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B772C2C008E for ; Mon, 29 Apr 2013 23:33:21 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=G5roAJVUereK7D4D1bbYuL6xWRJ96uRmpOOqfNb6nfbrdU+2oi zPmHXWdpQvnrJtB95bvU/ufgCHpyAlqJT7pZOi4vD3fT1ICWhz80Zh11vIgigh9c dqIxKoXhrfQ5oT/5W32b37ptyhw2LWtsFzKBxQq7ueC0LyjGBM+3lDbL0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=/s/6zqXMoUU86pi/RDy0ETE20sI=; b=vl/BYNxnjdLYr348SmcT U54XgnIKaaI5CH7711Z9TJk6ta3Egb5BGeHo0opIPFaW8WhyeOSqcL0fw4BeFLHK 2sNrSZ+q2IdrS36YyuKPKpZMUI7hlXnAplu+ug91ya0pGgvtwBmS3bauFKKq6hRk qJgzSHA1p/ehDk3oa6zMf6E= Received: (qmail 15151 invoked by alias); 29 Apr 2013 13:33:16 -0000 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 Received: (qmail 15141 invoked by uid 89); 29 Apr 2013 13:33:15 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS, TW_GD autolearn=ham version=3.3.1 Received: from nasmtp01.atmel.com (HELO DVREDG02.corp.atmel.com) (192.199.1.246) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 29 Apr 2013 13:33:13 +0000 Received: from apsmtp01.atmel.com (10.168.254.30) by DVREDG02.corp.atmel.com (10.42.103.31) with Microsoft SMTP Server (TLS) id 14.2.342.3; Mon, 29 Apr 2013 07:33:08 -0600 Received: from PENCHT01.corp.atmel.com (10.168.5.161) by apsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server (TLS) id 14.2.342.3; Mon, 29 Apr 2013 21:33:08 +0800 Received: from atmel.com (10.168.5.13) by cas-ap.atmel.com (10.168.5.161) with Microsoft SMTP Server (TLS) id 14.2.342.3; Mon, 29 Apr 2013 21:33:06 +0800 Date: Mon, 29 Apr 2013 19:03:06 +0530 From: Senthil Kumar Selvaraj To: CC: , , Subject: [Patch, testsuite] Add -gdwarf to debug/dwarf2 testcases (Take 2) Message-ID: <20130429133303.GB6777@atmel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) This patch adds -gdwarf to the flags passed to all tests run by dwarf2.exp. In the first attempt, I'd added the flag to dg-options in individual testcases. Jakub then suggested adding it to the exp file instead. Does this look ok? If yes, could someone commit please, I don't have commit access. Regards Senthil gcc/testsuite/ChangeLog 2013-04-29 Senthil Kumar Selvaraj * gcc.dg/debug/dwarf2/dwarf2.exp: Replace -gdwarf-2 with -gdwarf and force -gdwarf when invoking dg-runtest. diff --git gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp index 829840c..f161787 100644 --- gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp +++ gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp @@ -22,7 +22,7 @@ load_lib gcc-dg.exp # If a testcase doesn't have special options, use these. global DEFAULT_CFLAGS if ![info exists DEFAULT_CFLAGS] then { - set DEFAULT_CFLAGS " -ansi -pedantic-errors -gdwarf-2" + set DEFAULT_CFLAGS " -ansi -pedantic-errors" } # Initialize `dg'. @@ -31,12 +31,12 @@ dg-init # Main loop. set comp_output [gcc_target_compile \ "$srcdir/$subdir/../trivial.c" "trivial.S" assembly \ - "additional_flags=-gdwarf-2"] + "additional_flags=-gdwarf"] if { ! [string match "*: target system does not support the * debug format*" \ $comp_output] } { remove-build-file "trivial.S" dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\] $srcdir/c-c++-common/dwarf2/*.c]] \ - "" $DEFAULT_CFLAGS + " -gdwarf " $DEFAULT_CFLAGS } # All done.