[Bug bootstrap/46037] --enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin

hubicka at ucw dot cz gcc-bugzilla@gcc.gnu.org
Tue Jan 11 14:09:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46037

--- Comment #16 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-11 14:06:58 UTC ---
> 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



More information about the Gcc-bugs mailing list