<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have been following clangs development for a few months now specifically tracking powerpc progress and running the clang test suite every so often. Right now as I see the clang tests are x86 specific in a few areas so I'm not really sure what the policy of testing will be as clang adds more support for other platforms. But right now a powerpc complied clang fails 4 tests.<div><br></div><div>For CodeGen powerpc fails on</div><div><br></div><div>darwin-string-literals.c</div><div>I have already filed a bug for this ( PR4171 )</div><div><br></div><div>2009-05-22-callingconv.c</div><div>This test contain x86 specific code<span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; "><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">. This test passes on powerpc if I set the target triple to i386-unknown-unknown</span></span></div><div><br></div><div>libcalls.c</div><div>This test fails because long double is not supported on powerpc however I believe clang is still doing the correct thing. The test is looking for 6 function declarations. On powerpc all the long double calls get reduced to just double so it only needs to produce 4 function declarations. This test again passes if the target triple is set to i386-unknown-unknown</div><div><br></div><div>For Driver powerpc fails on</div><div><br></div><div>analyze.c</div><div>The test expects "-mmacosx-version-min=10.5" however the test produces "-mmacosx-version-min=10.5.0" but this is just a minor typo.</div><div><br></div><div>So in summary the only test that I see that powerpc genuinely fails at is darwin-string-literals.c</div><div><br></div><div>Right now I know the clang driver is setup to use gcc instead of clang-cc by default on powerpc. At the time this was added there was a bug with the -arch option that was causing clang to crash on powerpc. That has since been resolved. On my local copy I modified to use clang-cc by default. In my limited testing I haven't run across any problems yet. Clang was able to successfully compile the cfitsio library ( <a href="http://heasarc.gsfc.nasa.gov/fitsio/">http://heasarc.gsfc.nasa.gov/fitsio/</a> ) and the resulting library will correctly read fits files. I can also compile and run simple Cocoa applications. These codes aren't using any exotic features however but so far so good.</div><div><br></div><div>Mark</div></body></html>