From patchwork Sun Mar 15 00:57:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 5618 Received: (qmail 16948 invoked by alias); 15 Mar 2015 00:57:35 -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 16839 invoked by uid 89); 15 Mar 2015 00:57:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS, UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 15 Mar 2015 00:57:32 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5C7953407AF for ; Sun, 15 Mar 2015 00:57:30 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: bfin: fix signed warning Date: Sat, 14 Mar 2015 20:57:28 -0400 Message-Id: <1426381048-8703-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes Fix the type of the local var to match the function it is passed to. Committed. --- sim/bfin/ChangeLog | 4 ++++ sim/bfin/bfin-sim.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 764bad2..ee5f81c 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,5 +1,9 @@ 2015-03-14 Mike Frysinger + * bfin-sim.c (decode_dsp32alu_0): Change v to bu32. + +2015-03-14 Mike Frysinger + * Makefile.in (SIM_RUN_OBJS): Delete. 2015-03-10 Mike Frysinger diff --git a/sim/bfin/bfin-sim.c b/sim/bfin/bfin-sim.c index 179d2b6..364ee29 100644 --- a/sim/bfin/bfin-sim.c +++ b/sim/bfin/bfin-sim.c @@ -4537,7 +4537,7 @@ decode_dsp32alu_0 (SIM_CPU *cpu, bu16 iw0, bu16 iw1) else if ((aop == 0 || aop == 1) && aopcde == 14 && x == 0 && s == 0) { bs40 src_acc = get_extended_acc (cpu, aop); - int v = 0; + bu32 v = 0; TRACE_INSN (cpu, "A%i = - A%i;", HL, aop);