[cfe-commits] r83199 - in /cfe/trunk/lib: Driver/Tools.cpp Frontend/InitPreprocessor.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Oct 1 09:13:04 PDT 2009


On Oct 1, 2009, at 8:40 AM, Rafael EspĂ­ndola wrote:

>> Did you verify that x86-64 objective-c is still getting this #define?
>
> in clang-cc is (and was) setting Options.ObjCNonFragileABI with
>
>  if (ObjCNonFragileABI)
>    Options.ObjCNonFragileABI = 1;
>
> and in Tools.cpp that options is passed with
>
>  Args.AddLastArg(CmdArgs, options::OPT_fobjc_nonfragile_abi);
>
> So I think the patch kept the old behavior.
>
> In fact, if I preprocesstest.m containing
>
> #ifdef __EXCEPTIONS
> int a = 1;
> #else
> int a = 0;
> #endif
>
> with clang -E test.m it produces "int a = 0" for both before and after
> my patch. Adding -fobjc-nonfragile-abi changes it to "int a = 1"

This is a regression in TOT. Passing -triple x86_64-apple-darwin10  to  
clang-cc (-m64 to clang)  implies
  -fobjc-nonfragile-abi. Yet we get  int a = 0;

- Fariborz

>
>
>> -Chris
>
> Cheers,
> Rafael
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits





More information about the cfe-commits mailing list