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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 1 08:40:02 PDT 2009


> 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"

> -Chris

Cheers,
Rafael



More information about the cfe-commits mailing list