[patch, testsuite, spu, fortran] Fix OpenMP test case failure
Tobias Burnus
burnus@net-b.de
Thu Apr 16 18:38:00 GMT 2009
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)
>
More information about the Gcc-patches
mailing list