From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21745 invoked by alias); 25 Oct 2006 08:19:29 -0000 Received: (qmail 21717 invoked by uid 48); 25 Oct 2006 08:19:20 -0000 Date: Wed, 25 Oct 2006 08:19:00 -0000 Message-ID: <20061025081920.21716.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/24518] Intrinsic MOD incorrect for large arg1/arg2 and slow. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg02155.txt.bz2 List-Id: ------- Comment #7 from fxcoudert at gcc dot gnu dot org 2006-10-25 08:19 ------- I'm adding Steve Kargl to the CC list, since he's our arithmetics expert :) (In reply to comment #6) > Revision 118024 clears the way for MOD and MODULO implementation: > http://gcc.gnu.org/ml/gcc-cvs/2006-10/msg00703.html Just to be sure I understand: we are garanteed that BUILT_IN_REMAINDER{F,,L} and BUILT_IN_FMOD{F,,L} are always available, right? > BTW: I don't know fortran requirements, but built-in functions produce faster > code if errno is not needed. -mno-math-errno should be used in this case. [Hum... I think you mean -fno-math-errno.] gfortran doesn't have a need for errno to be set after math functions are called. However, we do want that have "correct" results in all cases: Inf, NaN, subnormals, etc. From my reading of the manual, -fno-math-errno would imply that we do not get such correct results, am I right? -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu dot org Last reconfirmed|2006-10-22 21:01:38 |2006-10-25 08:19:20 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24518