From: Kwok Cheung Yeung Date: Tue, 18 Aug 2020 15:53:58 +0000 (-0700) Subject: critical-hint-*.{c,f90}: Move from gcc/testsuite to libgomp/testsuite X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbbbd2caf3ecd323049743cbebfcc1f910c128e4;p=thirdparty%2Fgcc.git critical-hint-*.{c,f90}: Move from gcc/testsuite to libgomp/testsuite This is a backport from master of commit ade6e7204ce4d179cd9fa4637ddee85ba1fa12d9. libgomp/ChangeLog: * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from gcc/testsuite/c-c++-common/gomp/. * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise. * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved from gcc/testsuite/gfortran.dg/gomp/. * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise. gcc/testsuite/ChangeLog: * c-c++-common/gomp/critical-hint-1.c: Moved to libgomp/. * c-c++-common/gomp/critical-hint-2.c: Moved to libgomp/. * gfortran.dg/gomp/critical-hint-1.f90: Moved to libgomp/. * gfortran.dg/gomp/critical-hint-2.f90: Moved to libgomp/. --- diff --git a/gcc/testsuite/ChangeLog.omp b/gcc/testsuite/ChangeLog.omp index 0362145ae473..9838d848eb46 100644 --- a/gcc/testsuite/ChangeLog.omp +++ b/gcc/testsuite/ChangeLog.omp @@ -1,3 +1,13 @@ +2020-08-18 Kwok Cheung Yeung + + Backport from mainline + 2020-07-22 Tobias Burnus + + * c-c++-common/gomp/critical-hint-1.c: Moved to libgomp/. + * c-c++-common/gomp/critical-hint-2.c: Moved to libgomp/. + * gfortran.dg/gomp/critical-hint-1.f90: Moved to libgomp/. + * gfortran.dg/gomp/critical-hint-2.f90: Moved to libgomp/. + 2020-08-18 Kwok Cheung Yeung Backport from mainline diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index ebc5b0e7a7a8..6c3f695ba4e9 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,15 @@ +2020-08-18 Kwok Cheung Yeung + + Backport from mainline + 2020-07-22 Tobias Burnus + + * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from + gcc/testsuite/c-c++-common/gomp/. + * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise. + * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved + from gcc/testsuite/gfortran.dg/gomp/. + * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise. + 2020-08-18 Kwok Cheung Yeung Backport from mainline diff --git a/gcc/testsuite/c-c++-common/gomp/critical-hint-1.c b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-1.c similarity index 98% rename from gcc/testsuite/c-c++-common/gomp/critical-hint-1.c rename to libgomp/testsuite/libgomp.c-c++-common/critical-hint-1.c index 510f8abef80d..1e49747477ba 100644 --- a/gcc/testsuite/c-c++-common/gomp/critical-hint-1.c +++ b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-1.c @@ -1,3 +1,5 @@ +/* { dg-do compile } */ + #include void diff --git a/gcc/testsuite/c-c++-common/gomp/critical-hint-2.c b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-2.c similarity index 98% rename from gcc/testsuite/c-c++-common/gomp/critical-hint-2.c rename to libgomp/testsuite/libgomp.c-c++-common/critical-hint-2.c index effe24a63ece..057353b6ce28 100644 --- a/gcc/testsuite/c-c++-common/gomp/critical-hint-2.c +++ b/libgomp/testsuite/libgomp.c-c++-common/critical-hint-2.c @@ -1,3 +1,4 @@ +/* { dg-do compile } */ /* { dg-additional-options "-fdump-tree-original" } */ #include diff --git a/gcc/testsuite/gfortran.dg/gomp/critical-hint-1.f90 b/libgomp/testsuite/libgomp.fortran/critical-hint-1.f90 similarity index 99% rename from gcc/testsuite/gfortran.dg/gomp/critical-hint-1.f90 rename to libgomp/testsuite/libgomp.fortran/critical-hint-1.f90 index c26b617f1bd3..225d9a7a221a 100644 --- a/gcc/testsuite/gfortran.dg/gomp/critical-hint-1.f90 +++ b/libgomp/testsuite/libgomp.fortran/critical-hint-1.f90 @@ -1,3 +1,5 @@ +! { dg-do compile } + subroutine example_criticial () use omp_lib implicit none diff --git a/gcc/testsuite/gfortran.dg/gomp/critical-hint-2.f90 b/libgomp/testsuite/libgomp.fortran/critical-hint-2.f90 similarity index 99% rename from gcc/testsuite/gfortran.dg/gomp/critical-hint-2.f90 rename to libgomp/testsuite/libgomp.fortran/critical-hint-2.f90 index 15d6206a438d..f34680ca718e 100644 --- a/gcc/testsuite/gfortran.dg/gomp/critical-hint-2.f90 +++ b/libgomp/testsuite/libgomp.fortran/critical-hint-2.f90 @@ -1,3 +1,4 @@ +! { dg-do compile } ! { dg-additional-options "-fdump-tree-original" } subroutine example_criticial () use omp_lib