From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13878 invoked by alias); 9 Oct 2003 11:51:40 -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 13870 invoked from network); 9 Oct 2003 11:51:39 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Oct 2003 11:51:39 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h99BpcM29083 for ; Thu, 9 Oct 2003 07:51:38 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h99BpbD31236 for ; Thu, 9 Oct 2003 07:51:38 -0400 Received: from cygbert.vinschen.de (vpn50-21.rdu.redhat.com [172.16.50.21]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h99Bpai08585 for ; Thu, 9 Oct 2003 04:51:36 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 1C67F58047; Thu, 9 Oct 2003 13:51:35 +0200 (CEST) Date: Thu, 09 Oct 2003 11:51:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: sh -Werror breakage Message-ID: <20031009115135.GD9554@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <3F7C891A.7020906@redhat.com> <20031003081342.GB31760@cygbert.vinschen.de> <16260.22522.978627.635432@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16260.22522.978627.635432@localhost.redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-10/txt/msg00294.txt.bz2 On Wed, Oct 08, 2003 at 02:31:22PM -0400, Elena Zannoni wrote: > Corinna Vinschen writes: > > On Thu, Oct 02, 2003 at 04:22:50PM -0400, Andrew Cagney wrote: > > > Corinna, I'm seeing: > > > > > > /home/cagney/PENDING/2003-09-28-deprecate-register-raw-size/src/gdb/sh-tdep.c:7\ > > > 46: warning: `flt_argreg' might be used uninitialized in this function > > > /home/cagney/PENDING/2003-09-28-deprecate-register-raw-size/src/gdb/sh-tdep.c:7\ > > > 51: warning: `reg_size' might be used uninitialized in this function > > > > GCC got this wrong. I've applied a patch to shut it up. > > > > Corinna > > > > Corinna, can you post the patch? Sure, http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/sh-tdep.c.diff?cvsroot=src&r1=1.144&r2=1.145 =================================================================== RCS file: /cvs/src/src/gdb/sh-tdep.c,v retrieving revision 1.144 retrieving revision 1.145 diff -u -r1.144 -r1.145 --- src/gdb/sh-tdep.c 2003/10/02 10:47:05 1.144 +++ src/gdb/sh-tdep.c 2003/10/03 08:13:37 1.145 @@ -743,12 +743,12 @@ { int stack_offset = 0; int argreg = ARG0_REGNUM; - int flt_argreg; + int flt_argreg = 0; int argnum; struct type *type; CORE_ADDR regval; char *val; - int len, reg_size; + int len, reg_size = 0; int pass_on_stack; /* first force sp to a 4-byte alignment */ Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc.