From patchwork Thu Apr 24 11:07:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 662 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id D605E360796 for ; Thu, 24 Apr 2014 04:10:11 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id 7903C62DAE15C; Thu, 24 Apr 2014 04:10:11 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com 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 homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 4B2FA62DACAF0 for ; Thu, 24 Apr 2014 04:10:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=wAlPQPFDXluLc5PuidAZ+aOi6EoHq Osften7RdphlIxE3iXFPBWRUK+U3MZ5VgCvCkdMaJPT2UZnc6I4qH2YY8eBtiznS 6AjwonHpf7Fi0oHgE8B7pZm0ecBGQKUlZ2JIZ4wO2gNDSyYST2gU3V/e3Gt/eT5S tGazaQiI9jQoqQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=KRK3oA9OFEO03orhceSUVPOGEAY=; b=ODZ Z7NOk1xtJYR3cZKRjSEqWCRiC53rMaDec2SaupNhXuLiG06J8ApeP4lV3n+0lvlD G2wNDIBnMPWKVgNr/RHH6LEcR5v/ZnvJQZqNeL+rnVZB9Ev+/ezxTQZQuh8qko60 0squAmxNpLI1gp0vqu5Ttk6Fmg223QuuyQwge9P0= Received: (qmail 27856 invoked by alias); 24 Apr 2014 11:10:09 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 27841 invoked by uid 89); 24 Apr 2014 11:10:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Apr 2014 11:10:07 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WdHXY-00010q-72 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 24 Apr 2014 04:10:04 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 24 Apr 2014 04:10:04 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 24 Apr 2014 04:10:03 -0700 From: Yao Qi To: Subject: [PATCH OBV] Remove unused labels in dwarf assembler Date: Thu, 24 Apr 2014 19:07:08 +0800 Message-ID: <1398337628-21128-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in I happen to see that 'double_label' isn't used in dwz.exp dwarf assembler. Similarly, partial_label and double_label aren't used in dwzbuildid.exp. This patch is to remove them. It is obvious. I'll push it in. gdb/testsuite: 2014-04-24 Yao Qi * gdb.dwarf2/dwz.exp (Dwarf::assemble): Remove unused double_label. * gdb.dwarf2/dwzbuildid.exp (Dwarf::assemble): Remove partial_label and double_label. --- gdb/testsuite/gdb.dwarf2/dwz.exp | 2 +- gdb/testsuite/gdb.dwarf2/dwzbuildid.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/dwz.exp b/gdb/testsuite/gdb.dwarf2/dwz.exp index 7f996b3..aa0ea7d 100644 --- a/gdb/testsuite/gdb.dwarf2/dwz.exp +++ b/gdb/testsuite/gdb.dwarf2/dwz.exp @@ -25,7 +25,7 @@ standard_testfile main.c dwz.S # Create the DWARF. set asm_file [standard_output_file $srcfile2] Dwarf::assemble $asm_file { - declare_labels partial_label double_label int_label int_label2 + declare_labels partial_label int_label int_label2 extern main diff --git a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp index 5861362..af8e5d3 100644 --- a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp +++ b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp @@ -62,7 +62,7 @@ proc write_dwarf_file {filename buildid {value 99}} { set asm_file [standard_output_file $filename] Dwarf::assemble $asm_file { - declare_labels partial_label double_label int_label int_label2 + declare_labels int_label int_label2 upvar buildid buildid upvar value value