PATCH: [4.0/4.1 Regression] debug info omitted for uninitialized variables

Daniel Berlin dberlin@dberlin.org
Thu Jul 7 14:44:00 GMT 2005


> Also notice that now mainline has two places to call into debug info for
> static vars - one in check_global_vars other in assemble_pending_decls
> for local scope static vars.  This probably can be cleaned up somehow
> too (perhaps all the debug hooks can be called by cgraph when outputting
> the variables but I am not quite sure if order depends on something)

Yes, this is something i wanted to do for 4.1 but got caught up in other
things (I mentioned it in a message many months ago when fixing some
other bug about outputting debug info for inline functions)

In reality, cgraph should be driving debug output for functions and
global variables, *not* anything else.  There should also be no ordering
issues, any that you find are almost certainly bugs in the debug
outputters.

If you need help making this a reality, please let me know.


> 
> Honza
> 
> > is true, how should check_global_declarations be called properly after
> > cgraph_optimize?
> > 
> > 
> > H.J.



More information about the Gcc-patches mailing list