* Fix darwin bootstrap on MacOS X 10.5+
@ 2007-07-25 6:40 Daniel Berlin
0 siblings, 0 replies; only message in thread
From: Daniel Berlin @ 2007-07-25 6:40 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: darwinfix.diff --]
[-- Type: text/x-diff; name="darwinfix.diff", Size: 501 bytes --]
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-25 4:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 6:40 Fix darwin bootstrap on MacOS X 10.5+ Daniel Berlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).