[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug target/89125] Misoptimization of converting sin(x) and cos(x) into sincos(x,&s,&c)
From:       "kargl at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2019-01-31 19:47:30
Message-ID: bug-89125-4-wiBQ6KEThy () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89125

--- Comment #8 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #6)
> Checking with FreeBSD developers on C99 compliance.

The answer is 'no'.  FreeBSD's C runtime libraries 
(libc+libm) are not fully C99 complaint.  It is a shame,
too.

Unfortunately and I should have remembered, FreeBSD's C runtime
libraries (ie libc+libm) are not C99 compliant.  The problem (for me)
is that function_c99_math_complex indicates that libm includes
a complete set of C99 complex math function, which of course
it doesn't.  Testing with GCC trunk gives

1 default_libc_has_function  (C99 compliant libc+libm)
2 no_c99_libc_has_function   (FreeBSD current setting)

                                  1            2
                === gcc Summary ===
# of expected passes            134923       134887
# of unexpected failures        171          207   <-- This is good.    
# of unexpected successes       27           27
# of expected failures          550          550
# of unresolved testcases       14           14
# of unsupported tests          2222         2222

                === g++ Summary ===
# of expected passes            124009       124009
# of unexpected failures        41           41
# of expected failures          548          548
# of unsupported tests          5585         5585

                === gfortran Summary ===
# of expected passes            48992        48993
# of unexpected failures        2            1     <-- This is bad.
# of expected failures          130          130
# of unsupported tests          88           88

'This is bad' occurs because FreeBSD is missing cexpl
and the fallback in libgfortran/intrinsics/c99_functions.c
seems to be broken on FreeBSD if default_libc_has_function
is used.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic