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

Ulrich Weigand uweigand@de.ibm.com
Thu Apr 16 12:44:00 GMT 2009


Hello,

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?

Bye,
Ulrich

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)
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com



More information about the Gcc-patches mailing list