From: Fariborz Jahanian Date: Thu, 12 Feb 2009 17:54:33 +0000 (+0000) Subject: Make nonfragile-abi the default for darwin's 64bit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a30b17b90033f40bb909d630466c2a04499b7bf0;p=clang Make nonfragile-abi the default for darwin's 64bit abi for objective-c programs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64386 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 80fbaaeb72..c72982bf22 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -149,8 +149,12 @@ static void GetDarwinLanguageOptions(LangOptions &Opts, return; // Blocks default to on for 10.6 (darwin10) and beyond. - if (Maj > 9) + // As does nonfragile-abi for 64bit mode + if (Maj > 9) { Opts.Blocks = 1; + if (Opts.ObjC1 && !strncmp(Triple, "x86_64", 6)) + Opts.ObjCNonFragileABI = 1; + } }