This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Fix 4 current darwin pch debug regressions
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 22 Mar 2005 09:09:33 -0800
- Subject: Re: [PATCH]: Fix 4 current darwin pch debug regressions
- References: <1111155527.17411.6.camel@linux-009002241015.watson.ibm.com>
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.