From patchwork Sun Jan 18 04:46:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Wei-cheng, Wang" X-Patchwork-Id: 4726 Received: (qmail 25833 invoked by alias); 18 Jan 2015 04:47:32 -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 25811 invoked by uid 89); 18 Jan 2015 04:47:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 18 Jan 2015 04:47:12 +0000 Received: by mail-pa0-f42.google.com with SMTP id et14so32082563pad.1 for ; Sat, 17 Jan 2015 20:47:11 -0800 (PST) X-Received: by 10.70.47.129 with SMTP id d1mr34736935pdn.46.1421556430936; Sat, 17 Jan 2015 20:47:10 -0800 (PST) Received: from [192.168.2.3] ([123.110.214.155]) by mx.google.com with ESMTPSA id ma7sm8010797pdb.53.2015.01.17.20.47.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jan 2015 20:47:09 -0800 (PST) Message-ID: <54BB3AC2.6050507@gmail.com> Date: Sun, 18 Jan 2015 12:46:58 +0800 From: Wei-cheng Wang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Jan Kratochvil CC: Ulrich Weigand , gdb-patches@sourceware.org, Joel Brobecker Subject: Re: Broken build: rs6000-tdep.c: 32-bit host --enable-targets=all --enable-64-bit-bfd [Re: [PATCH 2/3 v4] Process record support for PowerPC] References: <201501171146.t0HBktpk008932@d03av02.boulder.ibm.com> <20150117185342.GA10419@adacore.com> <20150117212014.GA32152@host2.jankratochvil.net> In-Reply-To: <20150117212014.GA32152@host2.jankratochvil.net> On 2015/1/18 上午 05:20, Jan Kratochvil wrote:> On Sat, 17 Jan 2015 19:53:42 +0100, Joel Brobecker wrote: > cc1: all warnings being treated as errors > Makefile:1112: recipe for target 'rs6000-tdep.o' failed Hi, Here is the fix. Ok to commit? 2015-01-18 Wei-cheng Wang * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, ppc_process_record_op31, ppc_process_record_op59, ppc_process_record_op60, ppc_process_record_op63, ppc_process_record): Fix -Wformat warning. * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): Remove unused variables. diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 75811d1..0e3c941 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -3356,7 +3356,6 @@ rs6000_epilogue_frame_cache (struct frame_info *this_frame, void **this_cache) struct rs6000_frame_cache *cache; struct gdbarch *gdbarch = get_frame_arch (this_frame); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - CORE_ADDR sp; if (*this_cache) return *this_cache; @@ -3957,8 +3956,8 @@ ppc_process_record_op4 (struct gdbarch *gdbarch, struct regcache *regcache, return 0; } - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, 4-%d.\n", insn, addr, ext); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, 4-%d.\n", insn, (unsigned long) addr, ext); return -1; } @@ -4000,8 +3999,8 @@ ppc_process_record_op19 (struct gdbarch *gdbarch, struct regcache *regcache, return 0; } - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, 19-%d.\n", insn, addr, ext); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, 19-%d.\n", insn, (unsigned long) addr, ext); return -1; } @@ -4458,7 +4457,8 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache, case 878: /* Transaction Abort Doubleword Conditional Immediate */ case 910: /* Transaction Abort */ fprintf_unfiltered (gdb_stdlog, "Cannot record Transaction instructions. " - "%08x at %08lx, 31-%d.\n", insn, addr, ext); + "%08x at 0x%lx, 31-%d.\n", + insn, (unsigned long) addr, ext); return -1; case 1014: /* Data Cache Block set to Zero */ @@ -4477,8 +4477,8 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache, } UNKNOWN_OP: - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, 31-%d.\n", insn, addr, ext); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, 31-%d.\n", insn, (unsigned long) addr, ext); return -1; } @@ -4569,8 +4569,8 @@ ppc_process_record_op59 (struct gdbarch *gdbarch, struct regcache *regcache, return 0; } - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, 59-%d.\n", insn, addr, ext); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, 59-%d.\n", insn, (unsigned long) addr, ext); return -1; } @@ -4582,7 +4582,6 @@ ppc_process_record_op60 (struct gdbarch *gdbarch, struct regcache *regcache, { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); int ext = PPC_EXTOP (insn); - int tmp; switch (ext >> 2) { @@ -4852,8 +4851,8 @@ ppc_process_record_op60 (struct gdbarch *gdbarch, struct regcache *regcache, return 0; } - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, 60-%d.\n", insn, addr, ext); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, 60-%d.\n", insn, (unsigned long) addr, ext); return -1; } @@ -5018,8 +5017,8 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache, } - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, 59-%d.\n", insn, addr, ext); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, 59-%d.\n", insn, (unsigned long) addr, ext); return -1; } @@ -5298,8 +5297,8 @@ ppc_process_record (struct gdbarch *gdbarch, struct regcache *regcache, default: UNKNOWN_OP: - fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record " - "%08x at %08lx, %d.\n", insn, addr, op6); + fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x " + "at 0x%lx, %d.\n", insn, (unsigned long) addr, op6); return -1; }