* sim/m68hc11 daa a->a
@ 2002-06-17 16:00 Andrew Cagney
2002-06-18 14:40 ` Stephane Carrez
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-06-17 16:00 UTC (permalink / raw)
To: Stephane Carrez, gdb-patches
Stephane,
When trying out a build with --enable-sim-build-warnings=,-Werror(1) I
noticed:
case 0x19: /* daa a->a */
src8 = cpu_get_a (proc);
cpu_special (proc, M6811_DAA);
cpu_set_a (proc, dst8);
break;
(the generated file m68hc11int.c) GCC is complaining that dst8 might be
used uninitialized.
enjoy,
Andrew
(1) No one has tried this for a long time
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: sim/m68hc11 daa a->a
2002-06-17 16:00 sim/m68hc11 daa a->a Andrew Cagney
@ 2002-06-18 14:40 ` Stephane Carrez
2002-06-18 16:05 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Stephane Carrez @ 2002-06-18 14:40 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb-patches
Hi Andrew,
Andrew Cagney wrote:
> Stephane,
>
> When trying out a build with --enable-sim-build-warnings=,-Werror(1) I
> noticed:
>
> case 0x19: /* daa a->a */
> src8 = cpu_get_a (proc);
> cpu_special (proc, M6811_DAA);
> cpu_set_a (proc, dst8);
> break;
>
> (the generated file m68hc11int.c) GCC is complaining that dst8 might be
> used uninitialized.
Ok. It needs a cleanup.
Heu... it also needs an implementation...in cpu_special().
>
> enjoy,
> Andrew
>
>
> (1) No one has tried this for a long time
>
To be honest I don't use -Werror...
Thanks!,
Stephane
-----------------------------------------------------------------------
Home Office
E-mail: stcarrez@nerim.fr Stephane.Carrez@solsoft.fr
WWW: http://stephane.carrez.free.fr http://www.solsoft.com
Free the Software! Visual Security Policy Management
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: sim/m68hc11 daa a->a
2002-06-18 14:40 ` Stephane Carrez
@ 2002-06-18 16:05 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2002-06-18 16:05 UTC (permalink / raw)
To: Stephane Carrez; +Cc: gdb-patches
>
>
> enjoy,
> Andrew
>
>
> (1) No one has tried this for a long time
>
>
> To be honest I don't use -Werror...
:-) Well, with these tweaks fixed, it can be again.
For those into statistics: There were ~10 -Werror messages of which 3
identified real bugs! Not bad - pretty cheap way of finding bugs before
the code is shipped :-)
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-18 23:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-17 16:00 sim/m68hc11 daa a->a Andrew Cagney
2002-06-18 14:40 ` Stephane Carrez
2002-06-18 16:05 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox