re PR target/46037 (--enable-stage1-languages=c,lto --enable-languages=c,lto --with...
authorJan Hubicka <jh@suse.cz>
Fri, 14 Jan 2011 15:42:09 +0000 (16:42 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 14 Jan 2011 15:42:09 +0000 (15:42 +0000)
2011-01-14  Jan Hubicka  <jh@suse.cz>
            Jack Howarth <howarth@bromo.med.uc.edu>

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 <howarth@bromo.med.uc.edu>
From-SVN: r168793

gcc/ChangeLog
gcc/config/darwin.c

index 9a6f58bfae2468af1cbad5789a85dcbf4bc019e4..4d5d5aecad0bda84574195fb54ac3c9a1c3122b8 100644 (file)
@@ -1,3 +1,11 @@
+2011-01-14  Jan Hubicka  <jh@suse.cz>
+       Jack Howarth <howarth@bromo.med.uc.edu>
+
+       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  <rguenther@suse.de>
 
        PR tree-optimization/47179
index 5560bf913fb3e7df0401bd1b9ee7e3d6e6056f5e..5c96cfd53cd7712b30156602f64ab6faead2161c 100644 (file)
@@ -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)