> The patch will also be problematic for powerpc-apple-darwin9 and darwin8 since
> it relies on dwarf2 and those OS releases still use stabs.
It should not be problem. For stabs we don't do var tracking.
The original test tested if target debug info supports var tracking and dwarf2
is the
only one. Since stabs support is not planned, I think the new test is as good
as old
one.
For that -gtoggle failure you need something like
if (flag_var_tracking
&& (generating_for_darwin_version >= 9)
&& debug_info_level >= DINFO_LEVEL_NORMAL
&& (flag_gtoggle ? (debug_info_level >= DINFO_LEVEL_NORMAL)
: (debug_info_level == DINFO_LEVEL_NONE))
&& write_symbols == DWARF2_DEBUG)
(i.e. -gtoggle is supposed to replace -g by -g0 and -g0 by -g.)
Honza