This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Fix 4 current darwin pch debug regressions


Daniel Berlin <dberlin@dberlin.org> writes:

> These fix the 4 pch regressions reported by the tester.
> 
> It turns out all of the debug writers but dwarf2 don't want to see start
> and end source file calls for the main source file (which was added to
> fix the macro debug info output for dwarf2).
> As a result, i've simply made it a debug hook and defaulted it to 0 for
> all but the dwarf2 writer, which restores the behavior the other debug
> writers were used to.
> 
> Bootstrapped and regtested on powerpc-darwin.
> 
> Okay for 4.0 and mainline?

This is OK.

...wishes we were using DWARF on darwin already...

> 2005-03-19  Daniel Berlin  <dberlin@dberlin.org>
> 
> 	* c-opts.c (c_common_parse_file): Only start/end main source file
> 	if debug hooks says the writer wants it.
> 	* dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
> 	member.
> 	(xcoff_debug_hooks): Ditto.
> 	* debug.c (do_nothing_hooks): Ditto.
> 	* debug.h (gcc_debug_hooks): Ditto.
> 	* dwarf2out.c (dwarf2_debug_hooks): Ditto.
> 	* sdbout.c (sdb_debug_hooks): Ditto.
> 	* vmsdbgout.c (vmsdbg_debug_hooks): Ditto.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]