From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25487 invoked by alias); 30 Apr 2004 00:36:08 -0000 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 Received: (qmail 25461 invoked by uid 48); 30 Apr 2004 00:36:05 -0000 Date: Fri, 30 Apr 2004 00:51:00 -0000 Message-ID: <20040430003605.25460.qmail@sources.redhat.com> From: "bdavis9659 at comcast dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040429173856.15205.kargl@c-67-168-59-70.client.comcast.net> References: <20040429173856.15205.kargl@c-67-168-59-70.client.comcast.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libfortran/15205] [gfortran] NEAREST intrinsic returns wrong value in DOUBLE PRECISION X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg02896.txt.bz2 List-Id: ------- Additional Comments From bdavis9659 at comcast dot net 2004-04-30 00:36 ------- for some reason i had to remove the _sp and _dp to get it to compile ? this is not a library problem, it is in the front end. [bdavis@localhost pr15205]$ gfortran -static a.f90 [bdavis@localhost pr15205]$ nm a.out |grep near 527:08049140 T _gfortran_nearest_r4 or look at the output of -fdump-tree-all [bdavis@localhost pr15205]$ grep near a.f90.t03.original 12: sr = _gfortran_nearest_r4 (sx, ss); 19: _gfortran_transfer_character ("nearest(", 8); 27: sr = _gfortran_nearest_r4 (sx, ss); 34: _gfortran_transfer_character ("nearest(", 8); 43: dr = (real8)_gfortran_nearest_r4 (dx, ds); 50: _gfortran_transfer_character ("nearest(", 8); 58: dr = (real8)_gfortran_nearest_r4 (dx, ds); 65: _gfortran_transfer_character ("nearest(", 8); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15205