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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #7 from kargl at gcc dot gnu.org ---
(In reply to dpozar from comment #3)
> Thomas,
> 
> compile time works fine; runtime not so good.
> dave
> 

So, maybe not a gfortran problem.

% gfcx -o z -fdump-tree-original a.f90
% grep csqrt a.f90.004t.original 
        sq = __builtin_csqrtf (z);
% nm z | grep sqrt
         U csqrtf@@FBSD_1.1

'sq = csqrt(z)' is compiled to 'sq = __builtin_csqrtf (z);' and
__builtin_csqrtf() is mapped to your math library's csqrtf()
function.  If your math library does not have csqrtf(), then 
there is a fall back function in libgfortran.  Looking at the
fallback function shows a design flaw.  Don't know if that you're
problem.

Reply via email to