From patchwork Wed Apr 22 19:23:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 463785 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A718D140134 for ; Thu, 23 Apr 2015 05:23:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=wcn1HAO/; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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:mime-version:to:subject:content-type; q= dns; s=default; b=jGzNPH5/tqjrlWRuZdQnmNAQh/6vo7cBdGhWQ7VWjszc6Z 0U9GO/nTESrder9aW6BoDURzVndchtQ7VPN0EvdFUsWqMD00xT4AqzXf9zUid98l emNkEkISqryJeyevYrc4+UzeIWvc6wmq5FSS6alsyE6wv3xqlp6EoXiMJTd4c= 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:mime-version:to:subject:content-type; s= default; bh=bq7ykwqJR09uOOzwFWz8e3DZApA=; b=wcn1HAO/YauKXvdMQjKe 8SzHMRAZqmZGdnHdBiDAYiNtAFnZrXynFdLmmWPCa+HQAZ7TCyGfPGiU4bsyiQ63 b5NVFQxZ1HjI2NKxg5dJjp94pyZdwahspq5uL2bBzpYpqXU3YhRptmDXXQHG5YdQ jvvvzHErHCucLw+dQE+1Fp8= Received: (qmail 35302 invoked by alias); 22 Apr 2015 19:23:24 -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 35280 invoked by uid 89); 22 Apr 2015 19:23:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 22 Apr 2015 19:23:22 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3MJNLsM025275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 22 Apr 2015 15:23:21 -0400 Received: from reynosa.quesejoda.com (vpn-63-241.rdu2.redhat.com [10.10.63.241]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3MJNKDP003392 for ; Wed, 22 Apr 2015 15:23:20 -0400 Message-ID: <5537F527.305@redhat.com> Date: Wed, 22 Apr 2015 12:23:19 -0700 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: gcc-patches Subject: [debug-early] Adjust g++.dg/debug/dwarf2/auto1.C testcase This patch adjusts the testcase to work with the now slightly different ordering of DIEs in the branch. Brought to you by the letter "N" for "nightmare". Committed to branch. Aldy commit 7996af2f984f42a9694c466ee05d5067696503cc Author: Aldy Hernandez Date: Wed Apr 22 12:20:10 2015 -0700 Adjust testcase for debug-early's different ordering. diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C b/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C index e38334b..c04e923 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C @@ -10,14 +10,14 @@ // .uleb128 0x5 # (DIE (0x4c) DW_TAG_unspecified_type) // .long .LASF6 # DW_AT_name: "auto" //... +// .uleb128 0x9 # (DIE (0x87) DW_TAG_base_type) +// .ascii "int\0" # DW_AT_name +//... // .uleb128 0x7 # (DIE (0x57) DW_TAG_subprogram) // .long 0x33 # DW_AT_specification // .long 0x87 # DW_AT_type -//... -// .uleb128 0x9 # (DIE (0x87) DW_TAG_base_type) -// .ascii "int\0" # DW_AT_name -// { dg-final { scan-assembler "a1.*(0x\[0-9a-f]+)\[^\n\r]*DW_AT_type.*\\1. DW_TAG_unspecified_type.*DW_AT_specification\[\n\r]{1,2}\[^\n\r]*(0x\[0-9a-f]+)\[^\n\r]*DW_AT_type.*\\2. DW_TAG_base_type" } } +// { dg-final { scan-assembler "a1.*(0x\[0-9a-f]+)\[^\n\r]*DW_AT_type.*\\1. DW_TAG_unspecified_type.*(0x\[0-9a-f]+). DW_TAG_base_type.*DW_AT_specification\[\n\r]{1,2}\[^\n\r]*\\2\[^\n\r]*DW_AT_type" } } struct A {