[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-12-13 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

Eric Botcazou ebotcazou at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||ebotcazou at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #6 from Eric Botcazou ebotcazou at gcc dot gnu.org ---
Patch applied.


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-11-05 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-09-26 Thread edlinger at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

--- Comment #5 from edlinger at gcc dot gnu.org ---
Author: edlinger
Date: Thu Sep 26 17:44:13 2013
New Revision: 202954

URL: http://gcc.gnu.org/viewcvs?rev=202954root=gccview=rev
Log:
2013-09-26  Bernd Edlinger  bernd.edlin...@hotmail.de

PR fortran/58113
* gfortran.dg/round_4.f90: Check for rounding support.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/round_4.f90


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-08-23 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

Bernd Edlinger bernd.edlinger at hotmail dot de changed:

   What|Removed |Added

 CC||bernd.edlinger at hotmail dot 
de

--- Comment #4 from Bernd Edlinger bernd.edlinger at hotmail dot de ---
Created attachment 30692
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30692action=edit
determine rounding support at runtime

How about this?
With this patch the test case should pass most of the time.


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-08-16 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

--- Comment #3 from Tobias Burnus burnus at gcc dot gnu.org ---
Quoting round_4.f90, which somehow no one seems to read ...

! Test whether I/O rounding works. Uses internally (libgfortran) strtod
! for the conversion - and sets the CPU rounding mode accordingly.
!
! If it doesn't work on your system, please check whether strtod handles
! rounding and whether your system is supported in libgfortran/config/fpu*.c
!
! Please only add ... run { target { ! { triplets } } } if it is unfixable
! on your target - and a note why (strtod doesn't handle it, no rounding
! support, etc.)


Thus, one way forward would be to exclude the target (Solaris, FreeBSD) - or to
simply add XFAIL as it also only works with very recent GLIBCs.

Alternatively, one could also think about a different technique for handling
the rounding (on input) in libgfortran.


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-08-15 Thread kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 CC||kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org ---
round_4.f90 fails on x86_64-unknown-freebsd10.0.

Reduce testcase

program main

  use iso_fortran_env

  implicit none

  real(4) :: r4p, r4m, ref4u, ref4d
  character(len=20) :: str, round

  ref4u = 0.10001_4
  ref4d = nearest (ref4u, -1.0_4)

  round = 'up'
  call t()
  print '(4Z10)', r4p, ref4u, r4m, -ref4d

contains
  subroutine t()
str = 0.1 0.1 0.1 0.1
read(str, *,round=round) r4p, r8p, r10p, r16p
str = -0.1 -0.1 -0.1 -0.1
read(str, *,round=round) r4m, r8m, r10m, r16m
  end subroutine t
end program main

% gfc4x -o z round_4.f90  ./z
  3DCD  3DCD  BDCD  BDCC


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-08-09 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

janus at gcc dot gnu.org changed:

   What|Removed |Added

 CC||janus at gcc dot gnu.org
Summary|gfortran.dg/round_4.f90 |[4.9 Regression]
   |FAILs   |gfortran.dg/round_4.f90
   ||FAILs

--- Comment #1 from janus at gcc dot gnu.org ---
cf. http://gcc.gnu.org/ml/fortran/2013-08/msg1.html and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57966#c4


[Bug fortran/58113] [4.9 Regression] gfortran.dg/round_4.f90 FAILs

2013-08-09 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58113

janus at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-08-09
 Ever confirmed|0   |1