From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29123 invoked by alias); 20 Apr 2002 05:10:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29116 invoked from network); 20 Apr 2002 05:10:29 -0000 Received: from unknown (HELO pizda.ninka.net) (216.101.162.242) by sources.redhat.com with SMTP; 20 Apr 2002 05:10:29 -0000 Received: from localhost (IDENT:davem@localhost.localdomain [127.0.0.1]) by pizda.ninka.net (8.9.3/8.9.3) with ESMTP id WAA10107 for ; Fri, 19 Apr 2002 22:01:49 -0700 Date: Fri, 19 Apr 2002 22:10:00 -0000 Message-Id: <20020419.220149.128588748.davem@redhat.com> To: gdb-patches@sources.redhat.com Subject: [RFA] Kill sparc-nat.c compile warning From: "David S. Miller" Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00669.txt.bz2 Pretty straightforward, fix an ambiguous else warning. 2002-04-19 David S. Miller * sparc-nat.c (store-inferior_registers): Fix ambiguous else. --- sparc-nat.c.~1~ Wed Mar 20 18:03:13 2002 +++ sparc-nat.c Fri Apr 19 22:05:47 2002 @@ -155,21 +155,23 @@ store_inferior_registers (int regno) /* First decide which pieces of machine-state we need to modify. Default for regno == -1 case is all pieces. */ if (regno >= 0) - if (FP0_REGNUM <= regno && regno < FP0_REGNUM + 32) - { - wanna_store = FP_REGS; - } - else - { - if (regno == SP_REGNUM) - wanna_store = INT_REGS + STACK_REGS; - else if (regno < L0_REGNUM || regno > I7_REGNUM) - wanna_store = INT_REGS; - else if (regno == FPS_REGNUM) + { + if (FP0_REGNUM <= regno && regno < FP0_REGNUM + 32) + { wanna_store = FP_REGS; - else - wanna_store = STACK_REGS; - } + } + else + { + if (regno == SP_REGNUM) + wanna_store = INT_REGS + STACK_REGS; + else if (regno < L0_REGNUM || regno > I7_REGNUM) + wanna_store = INT_REGS; + else if (regno == FPS_REGNUM) + wanna_store = FP_REGS; + else + wanna_store = STACK_REGS; + } + } /* See if we're forcing the stores to happen now, or deferring. */ if (regno == -2)