[cfe-dev] clang-cc -ast-print-xml errors

Craig Mortensen mortay at apple.com
Tue Sep 15 16:52:09 PDT 2009


Hi Mike,

OK, I got further using:

./clang-cc -ast-print -triple i386-apple-darwin10 -emit-pch -disable- 
free -main-file-name Foundation.h --relocation-model pic -pic-level=1  
--disable-fp-elim --unwind-tables=0 --mcpu=yonah --fmath-errno=0 -v - 
mmacosx-version-min=10.6.0 -fdiagnostics-show-option -o /tmp/ 
output.xml -x=objective-c /System/Library/Frameworks/ 
Foundation.framework/Headers/Foundation.h

I get passed the __SSE__, etc. issues.

I still get this error though:

In file included from /System/Library/Frameworks/ 
CoreServices.framework/Frameworks/CarbonCore.framework/Headers/ 
MachineExceptions.h:29:
/Developer/usr/lib/clang/1.0/include/xmmintrin.h:41:10: error:  
incompatible type returning 'int', expected '__m128'
   return __builtin_ia32_addss(a, b);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~

Craig


On Sep 15, 2009, at 3:55 PM, Mike Stump wrote:

> On Sep 15, 2009, at 3:46 PM, Craig Mortensen wrote:
>>
>> I'm using 'clang-cc' and specifying the argument: -ast-print-xml to  
>> the the XML output for Foundation.h
>
> You have to run clang -v <rest of command line>
> and then read down to the clang-cc line, and then use _that_ line,  
> modified appropriately.




More information about the cfe-dev mailing list