From 89a012ea9ee40a4169447fb2919eb77c89f47039 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 14 Jan 2011 16:42:09 +0100 Subject: [PATCH] re PR target/46037 (--enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin) 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. Co-Authored-By: Jack Howarth From-SVN: r168793 --- gcc/ChangeLog | 8 ++++++++ gcc/config/darwin.c | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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)