<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;">Hello,</span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><br></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;">I'm using 'clang-cc' and specifying the argument: <span class="Apple-style-span" style="line-height: normal; color: rgb(0, 139, 0); font-family: Menlo; ">-ast-print-xml<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; "> <span class="Apple-style-span" style="font-size: 14px; line-height: 19px; ">to the the XML output for Foundation.h</span></span></span></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><br></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Menlo; color: rgb(0, 139, 0); ">./clang-cc -ast-print-xml -x=objective-c /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h -o /tmp/output.xml</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Menlo; color: rgb(0, 139, 0); "><br></div></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px; ">This produces some error diagnostics when processing the headers:</span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><br></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><div>In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29:</div><div>/Developer/usr/lib/clang/1.0/include/xmmintrin.h:28:2: error: #error "SSE instruction set not enabled"</div><div>#error "SSE instruction set not enabled"</div><div> ^</div><div>In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32:</div><div><div>/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:216:3: error: unknown type name '__m128'</div><div>  __m128              s;</div><div>  ^</div><div><br></div><div>The second one appears to be a propagated error from the first.</div></div><div><br></div></span></font></div><div><span class="Apple-style-span" style="line-height: 19px; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;">It looks like 'Streaming SIMD Extensions' needs to be enabled?</span></font></span></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><br></span></font></div><div><span class="Apple-style-span" style="font-size: 14px; line-height: 19px; ">xmmintrin.h:</span></div><div><span class="Apple-style-span" style="color: rgb(127, 71, 38); font-family: Menlo; font-size: 14px; ">#ifndef __SSE__</span></div><div><font class="Apple-style-span" face="sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 19px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Menlo; color: rgb(127, 71, 38); ">#error "SSE instruction set not enabled"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Menlo; color: rgb(127, 71, 38); ">#else</div><div><font class="Apple-style-span" color="#7F4726" face="Menlo" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: normal;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;">The same thing goes for __MMX__ and __SSE2__</span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;">If I happen to define these, of course other errors appear relating to incompatible types 'int' and '__mm128', etc.</span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;">I actually get a crash at the end of processing at:</span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px;"><div>Assertion failed: (NodeStack.size() > 1 && "to much backtracking"), function toParent, file DocumentXML.cpp, line 51.</div><div><br></div><div>Thanks for the help.</div><div><br></div><div>Craig</div><div><br></div><div><br></div><div><br></div><div><br></div></span></font></div><div><font class="Apple-style-span" face="Helvetica" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br></span></font></div></span></font></div><div><font class="Apple-style-span" face="sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 19px; "><div><br></div><div><br></div></span></font></div></body></html>