This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix darwin bootstrap on MacOS X 10.5+


The attached patch was preappoved by Eric Christopher.

The current config/darwin.c forces on flag_var_tracking_unit for OSX
10.5+, but toplev.c generates a warning if flag_var_tracking_uninit is
set but no debug info is requested (normally this would only happen if
you passed -fvar-tracking-uninit)

Fixed by not forcing on this flag unless debug info is requested.

Bootstrapped on i686-darwin
Committed to mainline

2007-07-24 Daniel Berlin <dberlin@dberlin.org>

       * config/darwin.c (darwin_override_options): Don't force on
       flag_var_tracking_uninit when no debug info is requested.
Index: config/darwin.c
===================================================================
--- config/darwin.c	(revision 126899)
+++ config/darwin.c	(working copy)
@@ -1729,7 +1729,8 @@ darwin_override_options (void)
       flag_non_call_exceptions = 0;
     }
   if (flag_var_tracking
-      && strverscmp (darwin_macosx_version_min, "10.5") >= 0)
+      && strverscmp (darwin_macosx_version_min, "10.5") >= 0
+      && debug_info_level >= DINFO_LEVEL_NORMAL)
     flag_var_tracking_uninit = 1;
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]