Message ID | 20110112062033.GA20131@bromo.med.uc.edu |
---|---|
State | New |
Headers | show |
On Jan 11, 2011, at 10:20 PM, Jack Howarth <howarth@bromo.med.uc.edu> wrote: > Current gcc trunk is unable to lto-bootstrap on darwin due to a > bug in darwin_override_options() where debug_hooks->var_location is > tested prematurely for setting flag_var_tracking_uninit. > Okay for gcc trunk? Ok.
On Wed, Jan 12, 2011 at 03:10:13AM -0800, Mike Stump wrote: > On Jan 11, 2011, at 10:20 PM, Jack Howarth <howarth@bromo.med.uc.edu> wrote: > > Current gcc trunk is unable to lto-bootstrap on darwin due to a > > bug in darwin_override_options() where debug_hooks->var_location is > > tested prematurely for setting flag_var_tracking_uninit. > > > Okay for gcc trunk? > > Ok. Testresults for the revised patch using a lto-bootstrap with... profiledbootstrap BOOT_CFLAGS="-g -O3" with --enable-build-with-cxx on x86_64-apple-darwin10 at http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg01087.html with no regressions as well with revised patch applied. Likewise a lto-bootstrap on powerpc-apple-darwin9 works. Can one of you commit this into gcc trunk? Thanks. Jack
Index: gcc/config/darwin.c =================================================================== --- gcc/config/darwin.c (revision 168683) +++ gcc/config/darwin.c (working copy) @@ -2616,9 +2616,10 @@ darwin_override_options (void) } if (flag_var_tracking - && (generating_for_darwin_version >= 9) - && debug_info_level >= DINFO_LEVEL_NORMAL - && debug_hooks->var_location != do_nothing_debug_hooks.var_location) + && generating_for_darwin_version >= 9 + && (flag_gtoggle ? (debug_info_level == DINFO_LEVEL_NONE) + : (debug_info_level >= DINFO_LEVEL_NORMAL)) + && write_symbols == DWARF2_DEBUG) flag_var_tracking_uninit = 1; if (MACHO_DYNAMIC_NO_PIC_P)