[cfe-dev] mpfr 3.1.0 vs clang 3.0svn
echristo at apple.com
Fri Oct 14 18:17:48 PDT 2011
> I'll see if I can get the mpfr developer to attempt to create a test case from his code.
> So far, the only insight I have is that the issue is entirely suppressed if clang builds
> mpfr 3.1.0 at -O0. This is required for both the libmpfr shared library build as well as
> the test cases linked against it. Using -O1 triggers the testsuite failures. Interestingly
> the exact test cases that fail and the way they crash seems to vary with the optimization
> level (ie -O1 crashes the test cases differently than -O2). This does seem to suggest a
> devtool bug. The mpfr author has seen a similar issues with other compilers...
> ps As I mentioned before this problem doesn't exist with clang svn under x86_64 Fedora 15
> so it appears to be entirely darwin11 specific.
That sounds totally reasonable. It could be a bug anywhere really :)
More information about the cfe-dev