This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, testsuite, spu, fortran] Fix OpenMP test case failure
- From: Tobias Burnus <burnus at net-b dot de>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 20:38:22 +0200
- Subject: Re: [patch, testsuite, spu, fortran] Fix OpenMP test case failure
- References: <200904161244.n3GCikIf005460@d12av02.megacenter.de.ibm.com>
Ulrich Weigand wrote:
> this test case fails on platforms where compiling with -fopenmp is not
> supported (e.g. because of missing pthread support, like on the SPU).
>
> Use the appropriate target check to guard the test.
>
> Tested on spu-elf.
> OK for mainline?
>
OK.
Tobias
> ChangeLog:
>
> * gfortran.dg/vect/pr39318.f90: Guard with "target fopenmp".
>
>
> Index: gcc/testsuite/gfortran.dg/vect/pr39318.f90
> ===================================================================
> *** gcc/testsuite/gfortran.dg/vect/pr39318.f90 (revision 144779)
> --- gcc/testsuite/gfortran.dg/vect/pr39318.f90 (working copy)
> ***************
> *** 1,4 ****
> ! ! { dg-do compile }
> ! { dg-options "-c -fopenmp -fexceptions -O2 -ftree-vectorize" }
>
> subroutine adw_trajsp (F_u,i0,in,j0,jn)
> --- 1,4 ----
> ! ! { dg-do compile { target fopenmp } }
> ! { dg-options "-c -fopenmp -fexceptions -O2 -ftree-vectorize" }
>
> subroutine adw_trajsp (F_u,i0,in,j0,jn)
>