This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/46037] --enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jan 2011 14:07:19 +0000
- Subject: [Bug bootstrap/46037] --enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin
- Auto-submitted: auto-generated
- References: <bug-46037-4@http.gcc.gnu.org/bugzilla/>
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