PATCH: Initialize tmp_obstack

Daniel Jacobowitz drow@false.org
Sun Jan 21 15:59:00 GMT 2007


On Sun, Jan 21, 2007 at 02:07:14PM +0100, Mark Kettenis wrote:
> I had another look and come up with the attached.  By always
> initializing tmp_obstack the code is less optimal, but at least I can
> convince myself the code is safe now.  Unfortunately I can't test
> whether this fixes the GCC 4.1 warnings.

Thanks!  I can test it - I'll let you know this afternoon.

p-valprint.c has the same problem, but the correct fix there is going
to be to delete some code.  Pascal copied a lot from C/C++ but it
doesn't actually have static members to the best of my knowledge.
I see some discussion of them as planned for GNU Pascal, but no
implementations.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list