pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN, [...]): Define to OpenMP 5.0 pragmas even...
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Jun 2019 06:59:12 +0000 (08:59 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Jun 2019 06:59:12 +0000 (08:59 +0200)
* include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
_PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
Define to OpenMP 5.0 pragmas even for GCC 10.0+.
(_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.

From-SVN: r272634

libstdc++-v3/ChangeLog
libstdc++-v3/include/pstl/pstl_config.h

index 35c79f933898c7c7a967b1f159b4843c11f8fbaf..d7392553901f74a51b64d3528f2f5815e3dc5873 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
+       _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
+       Define to OpenMP 5.0 pragmas even for GCC 10.0+.
+       (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
+
 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/std/numeric (midpoint(T, T)): Change implementation for
index a6867cac40cc2771e261c9bf1751f3f739b31566..a96e06b77b0ed0b24e5077435a7604c1ade3ae90 100644 (file)
@@ -70,7 +70,7 @@
 #    define _PSTL_PRAGMA_FORCEINLINE
 #endif
 
-#if (__INTEL_COMPILER >= 1900)
+#if (__INTEL_COMPILER >= 1900) || (_PSTL_GCC_VERSION >= 100000)
 #    define _PSTL_PRAGMA_SIMD_SCAN(PRM) _PSTL_PRAGMA(omp simd reduction(inscan, PRM))
 #    define _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN(PRM) _PSTL_PRAGMA(omp scan inclusive(PRM))
 #    define _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN(PRM) _PSTL_PRAGMA(omp scan exclusive(PRM))
 #    define _PSTL_UDR_PRESENT 0
 #endif
 
-#define _PSTL_UDS_PRESENT (__INTEL_COMPILER >= 1900 && __INTEL_COMPILER_BUILD_DATE >= 20180626)
+#if ((__INTEL_COMPILER >= 1900 && __INTEL_COMPILER_BUILD_DATE >= 20180626) || _PSTL_GCC_VERSION >= 100000)
+#    define _PSTL_UDS_PRESENT 1
+#else
+#    define _PSTL_UDS_PRESENT 0
+#endif
 
 #if _PSTL_EARLYEXIT_PRESENT
 #    define _PSTL_PRAGMA_SIMD_EARLYEXIT _PSTL_PRAGMA(omp simd early_exit)