diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a6f58bfae2..4d5d5aecad0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2011-01-14 Jan Hubicka + Jack Howarth + + PR target/46037 + * config/darwin.c (darwin_override_options): Honor flag_gtoggle + when checking debug_info_level. Test write_symbols instead of + debug_hooks->var_location when setting flag_var_tracking_uninit. + 2011-01-14 Richard Guenther PR tree-optimization/47179 diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 5560bf913fb..5c96cfd53cd 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -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)