Steve Kargl suspected that read_dir.f90 would fail on all BSDs with the recent change. At least for DragonFly BSD, he is correct:
https://gcc.gnu.org/ml/gcc-testresults/2015-09/msg01222.html Please consider incorporating the attached patch which sets the test for xfail on dragonfly as well as freebsd. Suggested gcc/testsuite/ChangeLog entry: 2015-09-XX John Marino <gnu...@marino.st> * gfortran.dg/read_dir.f90: XFAIL this testcase on DragonFly. Thanks, John
Index: gcc/testsuite/gfortran.dg/read_dir.f90 =================================================================== --- gcc/testsuite/gfortran.dg/read_dir.f90 (revision 227744) +++ gcc/testsuite/gfortran.dg/read_dir.f90 (working copy) @@ -1,4 +1,4 @@ -! { dg-do run { xfail *-*-freebsd* } } +! { dg-do run { xfail *-*-freebsd* *-*-dragonfly* } } ! PR67367 program bug implicit none