[LLVMbugs] [Bug 11711] New: Clang fails on FreeBSD <tgmath.h> testsuite

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 5 04:34:05 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11711

             Bug #: 11711
           Summary: Clang fails on FreeBSD <tgmath.h> testsuite
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Consider the following collection of C header files:

http://svnweb.freebsd.org/base/head/sys/sys/cdefs.h?view=markup
http://svnweb.freebsd.org/base/head/include/tgmath.h?view=markup
http://svnweb.freebsd.org/base/head/include/complex.h?view=markup
http://svnweb.freebsd.org/base/head/include/math.h?view=markup

Now if we build this regression test:

http://svnweb.freebsd.org/base/head/tools/regression/include/tgmath/tgmath.c?view=markup

We will see that it works with at least GCC 4.2, 4.6 and 4.7, but fails with
Clang here and there:

not ok 1 - acos
not ok 2 - asin
not ok 3 - atan
not ok 7 - cos
not ok 8 - sin
not ok 9 - tan
not ok 10 - cosh
not ok 11 - sinh
not ok 12 - tanh
not ok 13 - exp
not ok 14 - log
not ok 15 - pow
not ok 16 - sqrt
not ok 17 - fabs
not ok 18 - atan2
not ok 20 - ceil
not ok 24 - exp2
not ok 27 - floor
not ok 31 - fmod
not ok 39 - log10

Also, GCC 4.2 is slow and takes 4 seconds to build this file. Clang takes 8
seconds. GCC 4.7 needs less than 2 seconds.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list