From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6837 invoked by alias); 31 Jan 2013 03:24:11 -0000 Received: (qmail 6822 invoked by uid 22791); 31 Jan 2013 03:24:10 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,RCVD_IN_HOSTKARMA_YE,TW_EG X-Spam-Check-By: sourceware.org Received: from na3sys009aog109.obsmtp.com (HELO na3sys009aog109.obsmtp.com) (74.125.149.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 31 Jan 2013 03:24:06 +0000 Received: from mx20.qnx.com ([72.1.200.103]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKUQnj1dceBVwJAU89UD0QQg07vqjsR+NG@postini.com; Wed, 30 Jan 2013 19:24:05 PST Received: by mx20.qnx.com (Postfix, from userid 500) id E72B120E4B; Wed, 30 Jan 2013 22:24:04 -0500 (EST) Received: from exhts.ott.qnx.com (exch2 [10.222.2.136]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx20.qnx.com (Postfix) with ESMTPS id B16CB20E18 for ; Wed, 30 Jan 2013 22:24:04 -0500 (EST) Received: from [10.222.41.4] (10.222.2.5) by exch2.ott.qnx.com (10.222.2.136) with Microsoft SMTP Server id 14.2.318.4; Wed, 30 Jan 2013 22:24:04 -0500 Message-ID: <5109E3D3.90207@qnx.com> Date: Thu, 31 Jan 2013 03:24:00 -0000 From: Aleksandar Ristovski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 Newsgroups: gmane.comp.gdb.patches To: "gdb-patches@sourceware.org" Subject: [patch] cleanup: Wunused - amd64 Content-Type: multipart/mixed; boundary="------------020107000001020501040406" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00734.txt.bz2 --------------020107000001020501040406 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 261 Hello, This is removing unused variables and allows compiling with -Wunused. Thanks, Aleksandar Ristovski QNX Software Systems ChangeLog: Aleksandar Ristovski * amd64-tdep.c (fixup_riprel): Remove unused BYTE_ORDER, DISP. --------------020107000001020501040406 Content-Type: text/x-patch; name="Wunused-amd64-201301302100.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wunused-amd64-201301302100.patch" Content-length: 1142 Index: gdb/amd64-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/amd64-tdep.c,v retrieving revision 1.117 diff -u -p -r1.117 amd64-tdep.c --- gdb/amd64-tdep.c 1 Jan 2013 06:32:37 -0000 1.117 +++ gdb/amd64-tdep.c 30 Jan 2013 22:25:14 -0000 @@ -1225,12 +1225,10 @@ static void fixup_riprel (struct gdbarch *gdbarch, struct displaced_step_closure *dsc, CORE_ADDR from, CORE_ADDR to, struct regcache *regs) { - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); const struct amd64_insn *insn_details = &dsc->insn_details; int modrm_offset = insn_details->modrm_offset; gdb_byte *insn = insn_details->raw_insn + modrm_offset; CORE_ADDR rip_base; - int32_t disp; int insn_length; int arch_tmp_regno, tmp_regno; ULONGEST orig_value; @@ -1239,7 +1237,6 @@ fixup_riprel (struct gdbarch *gdbarch, s ++insn; /* Compute the rip-relative address. */ - disp = extract_signed_integer (insn, sizeof (int32_t), byte_order); insn_length = gdb_buffered_insn_length (gdbarch, dsc->insn_buf, dsc->max_len, from); rip_base = from + insn_length; --------------020107000001020501040406--