This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24518] Intrinsic MOD incorrect for large arg1/arg2 and slow.
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2006 13:53:18 -0000
- Subject: [Bug fortran/24518] Intrinsic MOD incorrect for large arg1/arg2 and slow.
- References: <bug-24518-9236@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2006-10-25 13:53 -------
(In reply to comment #8)
> In the later case, expansion will fall-back to normal library call.
OK. So on system where the math library doesn't have remainderl, for example,
we shouldn't use BUILT_IN_REMAINDERL or it will be missing at link-time? If
that's the case, then we can't implement MOD/MODULO with these built-ins.
> Fortunatelly, no. The result will be correct. You can see the effect of
> -fno-math-errno at http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01158.html.
And now, a harder question: could we activate no-math-errno on a per-call
basis? That is, have the front-end emit a call to BUILT_IN_FOO and specify
that, for this call, errno doesn't have to be set?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24518