* [patch] iq2000-tdep.c false GCC uninitialized warning
@ 2010-08-28 8:13 Jan Kratochvil
2010-09-02 15:00 ` Jan Kratochvil
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kratochvil @ 2010-08-28 8:13 UTC (permalink / raw)
To: gdb-patches
Hi,
GCC 4.5+ produces a warning terminating the compilation on -O2.
I will check it in in some days as obvious.
Thanks,
Jan
gdb/
2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
* iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
--- a/gdb/iq2000-tdep.c
+++ b/gdb/iq2000-tdep.c
@@ -224,6 +224,8 @@ iq2000_scan_prologue (struct gdbarch *gdbarch,
loop_end = scan_end;
if (fi)
sal = find_last_line_symbol (scan_start, scan_end, 0);
+ else
+ sal.end = 0; /* Avoid GCC false warning. */
}
/* Saved registers:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] iq2000-tdep.c false GCC uninitialized warning
2010-08-28 8:13 [patch] iq2000-tdep.c false GCC uninitialized warning Jan Kratochvil
@ 2010-09-02 15:00 ` Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2010-09-02 15:00 UTC (permalink / raw)
To: gdb-patches
On Sat, 28 Aug 2010 10:13:22 +0200, Jan Kratochvil wrote:
> gdb/
> 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
Checked-in:
http://sourceware.org/ml/gdb-cvs/2010-09/msg00018.html
Thanks,
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-02 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-28 8:13 [patch] iq2000-tdep.c false GCC uninitialized warning Jan Kratochvil
2010-09-02 15:00 ` Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).