This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, testsuite, spu, fortran] Fix OpenMP test case failure


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)
>   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]