From patchwork Sat Jul 20 05:45:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 260403 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 A46F22C00A2 for ; Sat, 20 Jul 2013 15:45:55 +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 :message-id:date:from:to:cc:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=GSVYocjIcG4x4Swy WGxc9N+3GQkSIJjW1iuZthOpNYEMJfCJD1g5WOX3XNghvnIql0VJ7v+0ToFcMDkF jETzYVrHGaUBoxgQ61o9LPeo0xk1Psdi/9RL4FjaMo4jf7Mk8BjKzYx0YzBvG8Q7 lpyeGsq4Nx9NR0HIw+i1WPtcXbw= 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 :message-id:date:from:to:cc:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=QzLDTIS+E7KUXv2EsLg0LC j/zXI=; b=iFEvxeZwa/L1EgCW609Pw0X6lP4GDMb5lRwJam60Q0QnEUk88/sljq WYoJIlhSr17uAuVt/WG7GbFETbb0xDZOpz45FBgEtm8JVYhbyX1g+5sIB57JDfx2 cpNa6tbrToH5PKUZUsAhIGIKlkoZgYHbyysSx3XoxSaNCElRZauJk= Received: (qmail 17719 invoked by alias); 20 Jul 2013 05:45:48 -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 17708 invoked by uid 89); 20 Jul 2013 05:45:47 -0000 X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_50, KHOP_RCVD_UNTRUST, MIME_QP_LONG_LINE, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_W, RDNS_NONE, TW_GD autolearn=ham version=3.3.1 Received: from Unknown (HELO c62.cesmail.net) (216.154.195.54) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 20 Jul 2013 05:45:45 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c62.cesmail.net with ESMTP; 20 Jul 2013 01:45:38 -0400 Received: from cust213-dsl91-135-11.idnet.net (cust213-dsl91-135-11.idnet.net [91.135.11.213]) by webmail.spamcop.net (Horde MIME library) with HTTP; Sat, 20 Jul 2013 01:45:37 -0400 Message-ID: <20130720014537.splk1w0hwkogkcco-nzlynne@webmail.spamcop.net> Date: Sat, 20 Jul 2013 01:45:37 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , Janis Johnson Subject: testsuite patches (1/14): Request dwarf-2 output where needed MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-Virus-Found: No Although the gcc.dg/debug/dwarf2/dwarf2.exp generally requests dwarf-2 information, so that the test will work with targets that have a different default output format, that doesn't happen where the test specifies specific target options. In that case, we have to specify -gdwarf-2 in the individual test case. Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu. 2013-05-13 Joern Rennecke * gcc.dg/debug/dwarf2/global-used-types.c: Request dwarf-2 output. * gcc.dg/debug/dwarf2/inline2.c: Likewise. * gcc.dg/debug/dwarf2/inline3.c: Likewise. * gcc.dg/debug/dwarf2/pr37726.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-1.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-2.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-3.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-4.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-5.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-6.c: Likewise. * gcc.dg/debug/dwarf2/pr41543.c: Likewise. * gcc.dg/debug/dwarf2/pr41695.c: Likewise. * gcc.dg/debug/dwarf2/pr43237.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-1.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-2.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-3.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-4.c: Likewise. * gcc.dg/debug/dwarf2/pr53948.c: Likewise. * gcc.dg/debug/dwarf2/struct-loc1.c: Likewise. Index: gcc.dg/debug/dwarf2/global-used-types.c =================================================================== --- gcc.dg/debug/dwarf2/global-used-types.c (revision 201032) +++ gcc.dg/debug/dwarf2/global-used-types.c (working copy) @@ -1,6 +1,6 @@ /* Contributed by Dodji Seketeli - { dg-options "-g -dA -fno-merge-debug-strings" } + { dg-options "-gdwarf-2 -dA -fno-merge-debug-strings" } { dg-do compile } { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } } { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } } Index: gcc.dg/debug/dwarf2/inline2.c =================================================================== --- gcc.dg/debug/dwarf2/inline2.c (revision 201032) +++ gcc.dg/debug/dwarf2/inline2.c (working copy) @@ -14,7 +14,7 @@ properly nested DW_TAG_inlined_subroutine DIEs for third, second and first. */ -/* { dg-options "-O -g3 -dA" } */ +/* { dg-options "-O -g3 -gdwarf-2 -dA" } */ /* { dg-do compile } */ /* There are 6 inlined subroutines: Index: gcc.dg/debug/dwarf2/inline3.c =================================================================== --- gcc.dg/debug/dwarf2/inline3.c (revision 201032) +++ gcc.dg/debug/dwarf2/inline3.c (working copy) @@ -1,7 +1,7 @@ /* Verify that only one DW_AT_const_value is emitted for baz, not for baz abstract DIE and again inside of DW_TAG_inlined_subroutine. */ -/* { dg-options "-O2 -g -dA -fmerge-all-constants" } */ +/* { dg-options "-O2 -gdwarf-2 -dA -fmerge-all-constants" } */ /* { dg-do compile } */ /* { dg-final { scan-assembler-times " DW_AT_const_value" 1 } } */ Index: gcc.dg/debug/dwarf2/pr37726.c =================================================================== --- gcc.dg/debug/dwarf2/pr37726.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr37726.c (working copy) @@ -1,6 +1,6 @@ /* PR debug/37726 */ /* { dg-do compile } */ -/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ int foo (int parm) { Index: gcc.dg/debug/dwarf2/pr41445-1.c =================================================================== --- gcc.dg/debug/dwarf2/pr41445-1.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41445-1.c (working copy) @@ -2,7 +2,7 @@ /* Test that token after multi-line function-like macro use gets correct locus even when preprocessing separately. */ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-save-temps -gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #define A(a,b) int varh;A(1, Index: gcc.dg/debug/dwarf2/pr41445-2.c =================================================================== --- gcc.dg/debug/dwarf2/pr41445-2.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41445-2.c (working copy) @@ -1,6 +1,6 @@ /* PR preprocessor/41445 */ /* { dg-do compile } */ -/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #include "pr41445-1.c" Index: gcc.dg/debug/dwarf2/pr41445-3.c =================================================================== --- gcc.dg/debug/dwarf2/pr41445-3.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41445-3.c (working copy) @@ -2,7 +2,7 @@ /* Test that token after multi-line function-like macro use gets correct locus even when preprocessing separately. */ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-save-temps -gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #define A(a,b) int varh;/* Index: gcc.dg/debug/dwarf2/pr41445-4.c =================================================================== --- gcc.dg/debug/dwarf2/pr41445-4.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41445-4.c (working copy) @@ -1,6 +1,6 @@ /* PR preprocessor/41445 */ /* { dg-do compile } */ -/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #include "pr41445-3.c" Index: gcc.dg/debug/dwarf2/pr41445-5.c =================================================================== --- gcc.dg/debug/dwarf2/pr41445-5.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41445-5.c (working copy) @@ -2,7 +2,7 @@ /* Test that token after multi-line function-like macro use gets correct locus even when preprocessing separately. */ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-save-temps -gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #define A(x) vari x #define vari(x) Index: gcc.dg/debug/dwarf2/pr41445-6.c =================================================================== --- gcc.dg/debug/dwarf2/pr41445-6.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41445-6.c (working copy) @@ -1,6 +1,6 @@ /* PR preprocessor/41445 */ /* { dg-do compile } */ -/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #include "pr41445-5.c" Index: gcc.dg/debug/dwarf2/pr41543.c =================================================================== --- gcc.dg/debug/dwarf2/pr41543.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41543.c (working copy) @@ -1,6 +1,6 @@ /* PR preprocessor/41543 */ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-save-temps -gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ #include Index: gcc.dg/debug/dwarf2/pr41695.c =================================================================== --- gcc.dg/debug/dwarf2/pr41695.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr41695.c (working copy) @@ -1,6 +1,6 @@ /* PR debug/41695 */ /* { dg-do compile } */ -/* { dg-options "-g -O2 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O2 -dA -fno-merge-debug-strings" } */ int bar (int); Index: gcc.dg/debug/dwarf2/pr43237.c =================================================================== --- gcc.dg/debug/dwarf2/pr43237.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr43237.c (working copy) @@ -1,6 +1,6 @@ /* PR debug/43237 */ /* { dg-do compile } */ -/* { dg-options "-g -O2 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O2 -dA -fno-merge-debug-strings" } */ struct S { Index: gcc.dg/debug/dwarf2/pr47939-1.c =================================================================== --- gcc.dg/debug/dwarf2/pr47939-1.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr47939-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -dA" } */ +/* { dg-options "-save-temps -gdwarf-2 -dA" } */ typedef struct _Harry { int dummy; } Harry_t; Harry_t harry; Index: gcc.dg/debug/dwarf2/pr47939-2.c =================================================================== --- gcc.dg/debug/dwarf2/pr47939-2.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr47939-2.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -dA" } */ +/* { dg-options "-save-temps -gdwarf-2 -dA" } */ typedef const struct _Harry { int dummy; } Harry_t; Harry_t harry; Index: gcc.dg/debug/dwarf2/pr47939-3.c =================================================================== --- gcc.dg/debug/dwarf2/pr47939-3.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr47939-3.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -dA" } */ +/* { dg-options "-save-temps -gdwarf-2 -dA" } */ typedef struct _Harry { int dummy; } Harry_t; const Harry_t harry[5]; Index: gcc.dg/debug/dwarf2/pr47939-4.c =================================================================== --- gcc.dg/debug/dwarf2/pr47939-4.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr47939-4.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -g -dA" } */ +/* { dg-options "-save-temps -gdwarf-2 -dA" } */ typedef const struct _Harry { int dummy; } Harry_t; Harry_t harry[10]; Index: gcc.dg/debug/dwarf2/pr53948.c =================================================================== --- gcc.dg/debug/dwarf2/pr53948.c (revision 201032) +++ gcc.dg/debug/dwarf2/pr53948.c (working copy) @@ -1,6 +1,6 @@ /* Test that we have line information for the line with local variable initializations. */ -/* { dg-options "-O0 -g -dA" } */ +/* { dg-options "-O0 -gdwarf-2 -dA" } */ /* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\]\[ \t\]+line 8" } } */ Index: gcc.dg/debug/dwarf2/struct-loc1.c =================================================================== --- gcc.dg/debug/dwarf2/struct-loc1.c (revision 201032) +++ gcc.dg/debug/dwarf2/struct-loc1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ +/* { dg-options "-gdwarf-2 -O0 -dA -fno-merge-debug-strings" } */ struct foo; struct foo *obj;