From: Hans-Peter Nilsson Date: Thu, 23 May 2019 02:18:49 +0000 (+0000) Subject: There was a regression for gfortran.dg/fmt_en.f90 for cris-elf that on... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dac25d1ee4644deaea053911f0f3da84fa8cb6d;p=gcc.git There was a regression for gfortran.dg/fmt_en.f90 for cris-elf that on... There was a regression for gfortran.dg/fmt_en.f90 for cris-elf that on inspection was due to it having acquired a truncation call through the runtime. I updated that and the new tests that had "Fortran runtime error: required ftruncate or chsize support not present" messages in gfortran.log, ran past cris-elf and committed as obvious. See also from which I copy-pasted most of this message. (Yep, 11 years ago.) gcc/testsuite: * gfortran.dg/dec_io_1.f90, gfortran.dg/dtio_1.f90, gfortran.dg/dtio_12.f90, gfortran.dg/fmt_en.f90, gfortran.dg/namelist_89.f90: Gate test on effective_target fd_truncate. From-SVN: r271536 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 788f3e012ac..56808cf5c0c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2019-05-23 Hans-Peter Nilsson + + * gfortran.dg/dec_io_1.f90, gfortran.dg/dtio_1.f90, + gfortran.dg/dtio_12.f90, gfortran.dg/fmt_en.f90, + gfortran.dg/namelist_89.f90: Gate test on effective_target + fd_truncate. + 2019-05-22 David Malcolm PR c++/90462 diff --git a/gcc/testsuite/gfortran.dg/dec_io_1.f90 b/gcc/testsuite/gfortran.dg/dec_io_1.f90 index 2edc4277a93..58daf30a899 100644 --- a/gcc/testsuite/gfortran.dg/dec_io_1.f90 +++ b/gcc/testsuite/gfortran.dg/dec_io_1.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! { dg-options "-fdec" } ! ! Run-time tests for values of DEC I/O parameters (doesn't test functionality). diff --git a/gcc/testsuite/gfortran.dg/dtio_1.f90 b/gcc/testsuite/gfortran.dg/dtio_1.f90 index c6f17d94356..b168d306087 100644 --- a/gcc/testsuite/gfortran.dg/dtio_1.f90 +++ b/gcc/testsuite/gfortran.dg/dtio_1.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! ! Functional test of User Defined Derived Type IO, Formatted WRITE/READ ! diff --git a/gcc/testsuite/gfortran.dg/dtio_12.f90 b/gcc/testsuite/gfortran.dg/dtio_12.f90 index 54b10cbfc0c..ac6d9e7e496 100644 --- a/gcc/testsuite/gfortran.dg/dtio_12.f90 +++ b/gcc/testsuite/gfortran.dg/dtio_12.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! ! Test the fix for PR77657 in which the DTIO subroutine was not found, ! which led to an error in attempting to link to the abstract interface. diff --git a/gcc/testsuite/gfortran.dg/fmt_en.f90 b/gcc/testsuite/gfortran.dg/fmt_en.f90 index b3597e4a423..89011b32368 100644 --- a/gcc/testsuite/gfortran.dg/fmt_en.f90 +++ b/gcc/testsuite/gfortran.dg/fmt_en.f90 @@ -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 diff --git a/gcc/testsuite/gfortran.dg/namelist_89.f90 b/gcc/testsuite/gfortran.dg/namelist_89.f90 index fbb71439242..91f64fe88cf 100644 --- a/gcc/testsuite/gfortran.dg/namelist_89.f90 +++ b/gcc/testsuite/gfortran.dg/namelist_89.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! PR69456 Namelist value with trailing sign is ignored without error implicit none integer :: ios