--- Comment #16 from danglin at gcc dot gnu dot org 2009-03-28 21:16
---
Subject: Bug 33595
Author: danglin
Date: Sat Mar 28 21:15:45 2009
New Revision: 145209
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145209
Log:
PR fortran/33595
* intrinsics/c99_functions
--- Comment #15 from fxcoudert at gcc dot gnu dot org 2009-03-28 09:41
---
(In reply to comment #14)
> Patch submitted:
> http://gcc.gnu.org/ml/gcc-patches/2008-12/msg01221.html
Just a note: the patch was reviewed and okayed by Tobias. You can apply to
trunk.
--
fxcoudert at gcc do
--- Comment #14 from danglin at gcc dot gnu dot org 2008-12-29 17:11
---
Patch submitted:
http://gcc.gnu.org/ml/gcc-patches/2008-12/msg01221.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33595
--- Comment #13 from kargl at gcc dot gnu dot org 2008-12-28 22:14 ---
(In reply to comment #12)
> Subject: Re: FAIL: gfortran.dg/nint_2.f90 -O0 execution test
>
> > See libm on FreeBSD.
> >
> > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/msun/src/s_roundf.c
>
> So, the ceilf imp
--- Comment #12 from dave at hiauly1 dot hia dot nrc dot ca 2008-12-28
21:48 ---
Subject: Re: FAIL: gfortran.dg/nint_2.f90 -O0 execution test
> See libm on FreeBSD.
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/msun/src/s_roundf.c
So, the ceilf implementation was changed to a
--- Comment #11 from kargl at gcc dot gnu dot org 2008-12-28 21:02 ---
(In reply to comment #9)
>
> I think the tests in roundf need to be revised to minimize rounding
> issues. Patch attached. This fixes the test on hppa2.0w-hp-hpux11.11.
>
See libm on FreeBSD.
http://www.freebsd.
--
danglin at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfi
--- Comment #9 from dave at hiauly1 dot hia dot nrc dot ca 2008-12-28
20:39 ---
Subject: Re: FAIL: gfortran.dg/nint_2.f90 -O0
execution test
On Sun, 28 Dec 2008, danglin at gcc dot gnu dot org wrote:
> The value calculated for b = nearest(0.5,-1.0) is 0.4997 (raw 0x3efff
--- Comment #8 from danglin at gcc dot gnu dot org 2008-12-28 20:25 ---
The value calculated for b = nearest(0.5,-1.0) is 0.4997 (raw 0x3eff).
The code uses the roundf implementation in c99_functions.
float
roundf(float x)
{
float t;
if (!isfinite (x))
return (x);
--- Comment #7 from billingd at gcc dot gnu dot org 2008-12-04 05:11
---
I missed fortran/33177 - nint() on Cygwin. Sorry.
--
billingd at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #6 from billingd at gcc dot gnu dot org 2008-12-04 03:04
---
Just had a look at this with cvs gfortran under cygwin.
A slightly modified test
program intrinsic_integer
implicit none
call test (0.0, (/0, 0, 0, 0/))
call test (0.3, (/0, 1, 0, 0/))
call test (0.7, (/
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-12-22 07:37
---
nint_2.f90 is also broken on Cygwin. Should we make that a separate PR?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33595
--- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca 2007-10-01
17:29 ---
Subject: Re: FAIL: gfortran.dg/nint_2.f90 -O0 execution test
> Does hpux10 have round()? And does it have ceil()? (I assume that the last
> answer is yes, because it's ANSI C, but hpux could surprise me
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-10-01 16:39
---
(In reply to comment #2)
> lround and nextafter aren't available on hpux10.
Does hpux10 have round()? And does it have ceil()? (I assume that the last
answer is yes, because it's ANSI C, but hpux could surprise m
--- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca 2007-10-01
16:33 ---
Subject: Re: FAIL: gfortran.dg/nint_2.f90 -O0 execution test
> It should print "0 1 1". If it prints "1 1 1", then your system libm has a
> bug.
It prints "0 1 1" on hpux11. lround and nextafter aren'
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-10-01 13:13
---
Can you compile and run the following C test code? (gcc -std=c99, or the system
compiler)
#include
#include
int main (void)
{
printf ("%ld %ld %ld\n", lround (nextafter(0.5,-9.0)), lround (0.5), lround
(nexta
16 matches
Mail list logo