PATCH for debug/23336 - enums types missing from debug info
Daniel Jacobowitz
drow@false.org
Tue Jul 25 16:29:00 GMT 2006
On Mon, Jul 24, 2006 at 10:09:23AM -0700, Mark Mitchell wrote:
> > * dwarf2out.c (dwarf2out_abstract_function): Save and restore
> > cfun also.
>
> Why is this necessary? (It doesn't seem bad to me; just curious.)
>
> The C++ changes are fine. I'll let a C maintainer review the C bits.
> Once you answer the question above, I'll re-review the DWARF bits.
There's already code to walk used_types_hash for the current function,
whether we're outputing a real function or an abstract copy. But it
looks at cfun to find it. It seemed reasonable to fix a place where
cfun and current_function_decl were out of sync as a solution.
If the C++ bits are OK, I think the C bit is obvious; but I'll ask
Joseph to take a look.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gcc-patches
mailing list