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

Mike Stump mrs at apple.com
Tue Sep 15 16:59:28 PDT 2009

On Sep 15, 2009, at 4:52 PM, Craig Mortensen wrote:
> ./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);
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~

That's just a bug...  :-(  I've seen it before recently, but don't  
know who broke it or why.  If you want, you can do a binary search on  
clang to find the checkin that caused the problem.  I believe it used  
to work (but I'm not certain).

More information about the cfe-dev mailing list