Re: GDB 6.5.90 available for testing (GDB 6.6 pre-release)

Daniel Jacobowitz
2006-12-05T21:41:59Z

On Tue, Dec 05, 2006 at 10:36:20PM +0100, Mark Kettenis wrote:
> >
> > Here's the patch I've been using for this. It'd be better to rework
> > the way those functions use those obstacks, but...
> >
> > 2006-12-05 Jim Blandy <jimb@codesourcery.com>
> >
> > * cp-valprint.c (cp_print_value_fields, cp_print_value):
> > Initialize tmp_obstack, to avoid warnings.
> > * p-valprint.c (pascal_object_print_value_fields)
> > (pascal_object_print_value): Same.
>
> This is silly, at least if they are really unecessary. It's a bug in GCC
> and should be fixed. I mean, GCC should get better at detecting this sort
> of things; not give more false positives.
>
> Markus, can you file a GCC bug report for this?

I'm pretty sure the GCC bug was fixed in later versions of 4.1.x
already. At least, my compiler no longer warns about it. But I have
no idea how reliable that is - I can't see any vaguely efficient way to
compute this.

--
Daniel Jacobowitz
CodeSourcery