This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libgfortran] PR60128 Wrong ouput using en edit descriptor
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Dominique d'Humières <dominiq at lps dot ens dot fr>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Apr 2014 17:09:55 -0400 (EDT)
- Subject: Re: [patch, libgfortran] PR60128 Wrong ouput using en edit descriptor
- Authentication-results: sourceware.org; auth=none
- References: <EE0CEC78-9D43-4997-A81A-8C2A931F8522 at lps dot ens dot fr>
On Mon, 31 Mar 2014, Dominique d'Humières wrote:
> Updated gfortran.dg/fmt_en.f90 to skip some tests not
> supported on i?86-*-solaris2.9* and hppa*-*-hpux* (these tests
> assume rounding to nearest and to even on tie, AFAICT
> i?86-*-solaris2.9* rounds real(16) to zero and hppa*-*-hpux*
> rounds all kinds to zero on tie, with some exceptions I don?t
> understand). The detection of the rounding is based on the F and
> E edit descriptors.
>
> OK for trunk and 4.8?
This test, after the update on 4.8 in r209070 when the test-case
was modified substantially (not really covered by the ChangeLog
entry) to be identical to that on trunk, apparently takes a
different route in the fortran run-time library on 4.8 compared
to trunk. For 4.8, it requires more run-time support on the
target system, trigging the tell-tale error message found in
gfortran.log: "Fortran runtime error: required ftruncate or
chsize support not present" on some targets, then aborting and
flagged as a regression as it passed before that commit.
Committed to 4.8 as obvious. Again, this is not required on trunk.
gcc/testsuite:
* gfortran.dg/fmt_en.f90: Gate test on effective_target
fd_truncate.
Index: gfortran.dg/fmt_en.f90
===================================================================
--- gfortran.dg/fmt_en.f90 (revision 209324)
+++ gfortran.dg/fmt_en.f90 (working copy)
@@ -1,4 +1,4 @@
-! { dg-do run }
+! { dg-do run { target fd_truncate } }
! PR60128 Invalid outputs with EN descriptors
! Test case provided by Walt Brainerd.
program pr60128
brgds, H-P