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: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jan 2011 18:06:37 +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 #21 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-01-11 18:06:31 UTC ---
This brute force approach works for both a standard and lto-bootstrap...
Index: gcc/config/darwin.c
===================================================================
--- gcc/config/darwin.c (revision 168667)
+++ gcc/config/darwin.c (working copy)
@@ -2615,10 +2615,23 @@ darwin_override_options (void)
darwin_emit_branch_islands = true;
}
+ if (flag_gtoggle)
+ {
+ if (debug_info_level == DINFO_LEVEL_NONE)
+ {
+ debug_info_level = DINFO_LEVEL_NORMAL;
+
+ if (write_symbols == NO_DEBUG)
+ write_symbols = PREFERRED_DEBUGGING_TYPE;
+ }
+ else
+ debug_info_level = DINFO_LEVEL_NONE;
+ }
+
if (flag_var_tracking
- && (generating_for_darwin_version >= 9)
+ && generating_for_darwin_version >= 9
&& debug_info_level >= DINFO_LEVEL_NORMAL
- && debug_hooks->var_location != do_nothing_debug_hooks.var_location)
+ && write_symbols == DWARF2_DEBUG)
flag_var_tracking_uninit = 1;
if (MACHO_DYNAMIC_NO_PIC_P)