From: Corinna Vinschen <vinschen@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: sh -Werror breakage
Date: Thu, 09 Oct 2003 11:51:00 -0000 [thread overview]
Message-ID: <20031009115135.GD9554@cygbert.vinschen.de> (raw)
In-Reply-To: <16260.22522.978627.635432@localhost.redhat.com>
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.
prev parent reply other threads:[~2003-10-09 11:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-02 20:22 Andrew Cagney
2003-10-03 8:13 ` Corinna Vinschen
2003-10-03 19:39 ` Andrew Cagney
2003-10-08 18:20 ` Elena Zannoni
2003-10-09 11:51 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031009115135.GD9554@cygbert.vinschen.de \
--to=vinschen@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox