cpp.c (cpp_define_builtins): Define _OPENMP to 201511 instead of 201307.
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Nov 2016 17:05:18 +0000 (18:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Nov 2016 17:05:18 +0000 (18:05 +0100)
gcc/fortran/
* cpp.c (cpp_define_builtins): Define _OPENMP to 201511 instead
of 201307.
* gfortran.texi: Mention partial OpenMP 4.5 support.
* intrinsic.texi: Update for OpenMP 4.5.
gcc/testsuite/
* gfortran.dg/openmp-define-3.f90: Expect 201511 instead of
201307.
libgomp/
* omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
* omp_lib.h.in (openmp_version): Likewise.
* testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
of 201307.
* testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.

From-SVN: r242044

gcc/fortran/ChangeLog
gcc/fortran/cpp.c
gcc/fortran/gfortran.texi
gcc/fortran/intrinsic.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/openmp-define-3.f90
libgomp/ChangeLog
libgomp/omp_lib.f90.in
libgomp/omp_lib.h.in
libgomp/testsuite/libgomp.fortran/openmp_version-1.f
libgomp/testsuite/libgomp.fortran/openmp_version-2.f90

index f1ea9a3bc62313009cf21e20c49bb853434f9db4..012d211ff00dea9d38694aace1f6cee54c5aa996 100644 (file)
@@ -1,5 +1,10 @@
 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
 
+       * cpp.c (cpp_define_builtins): Define _OPENMP to 201511 instead
+       of 201307.
+       * gfortran.texi: Mention partial OpenMP 4.5 support.
+       * intrinsic.texi: Update for OpenMP 4.5.
+
        * openmp.c (gfc_free_omp_clauses): Free critical_name, grainsize,
        hint, num_tasks, priority and if_exprs.
        (gfc_match_omp_to_link, gfc_match_omp_depend_sink): New functions.
index 8ac80926871c6f087886a16bf48655e7dad52053..68ec549c9c30611af4d5d91f4aa13ff4929b9eee 100644 (file)
@@ -168,7 +168,7 @@ cpp_define_builtins (cpp_reader *pfile)
     cpp_define (pfile, "_OPENACC=201306");
 
   if (flag_openmp)
-    cpp_define (pfile, "_OPENMP=201307");
+    cpp_define (pfile, "_OPENMP=201511");
 
   /* The defines below are necessary for the TARGET_* macros.
 
index 6de6c9bfeeb343129124fd7445f6b8304f607e70..6d8805cfc9856f60ba4a2944bf44e5b2c764102e 100644 (file)
@@ -536,7 +536,8 @@ The current status of the support is can be found in the
 and @ref{TS 18508 status} sections of the documentation.
 
 Additionally, the GNU Fortran compilers supports the OpenMP specification
-(version 4.0, @url{http://openmp.org/@/wp/@/openmp-specifications/}).
+(version 4.0 and most of the features of the 4.5 version,
+@url{http://openmp.org/@/wp/@/openmp-specifications/}).
 There also is initial support for the OpenACC specification (targeting
 version 2.0, @uref{http://www.openacc.org/}).
 Note that this is an experimental feature, incomplete, and subject to
@@ -1999,7 +2000,7 @@ and environment variables that influence run-time behavior.
 
 GNU Fortran strives to be compatible to the 
 @uref{http://openmp.org/wp/openmp-specifications/,
-OpenMP Application Program Interface v4.0}.
+OpenMP Application Program Interface v4.5}.
 
 To enable the processing of the OpenMP directive @code{!$omp} in
 free-form source code; the @code{c$omp}, @code{*$omp} and @code{!$omp}
index 85f781e7a5d93c597567120f5c75b63cef95a276..8122c6288234d7bc647ed337cca5f5bbe9a5b84e 100644 (file)
@@ -14769,7 +14769,7 @@ with the following options: @code{-fno-unsafe-math-optimizations
 @section OpenMP Modules @code{OMP_LIB} and @code{OMP_LIB_KINDS}
 @table @asis
 @item @emph{Standard}:
-OpenMP Application Program Interface v4.0
+OpenMP Application Program Interface v4.5
 @end table
 
 
@@ -14783,8 +14783,8 @@ the named constants defined in the modules are listed
 below.
 
 For details refer to the actual
-@uref{http://www.openmp.org/mp-documents/OpenMP4.0.0.pdf,
-OpenMP Application Program Interface v4.0}.
+@uref{http://www.openmp.org/wp-content/uploads/openmp-4.5.pdf,
+OpenMP Application Program Interface v4.5}.
 
 @code{OMP_LIB_KINDS} provides the following scalar default-integer
 named constants:
@@ -14799,7 +14799,7 @@ named constants:
 @code{OMP_LIB} provides the scalar default-integer
 named constant @code{openmp_version} with a value of the form
 @var{yyyymm}, where @code{yyyy} is the year and @var{mm} the month
-of the OpenMP version; for OpenMP v4.0 the value is @code{201307}.
+of the OpenMP version; for OpenMP v4.5 the value is @code{201511}.
 
 The following scalar integer named constants of the
 kind @code{omp_sched_kind}:
index 7c131725f5ac24131b9c95f1c868ad4d238ecd5c..d522e24928c2ec3dc7e3236ec82520b5280eb17a 100644 (file)
@@ -1,5 +1,8 @@
 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
 
+       * gfortran.dg/openmp-define-3.f90: Expect 201511 instead of
+       201307.
+
        * g++.dg/cpp1z/noexcept-type14.C: New test.
        * g++.dg/asan/asan_test.C: Remove -Wno-c++1z-compat from dg-options.
 
index 44d5c9de49b49f63d9263e3a713f4113f922a413..d20502dece18f6d60440c7599369ff1831431ea6 100644 (file)
@@ -6,6 +6,6 @@
 # error _OPENMP not defined
 #endif
 
-#if _OPENMP != 201307
+#if _OPENMP != 201511
 # error _OPENMP defined to wrong value
 #endif
index 920e3780f192238a0c841de2b46182f732bef72d..7e32fd0066612523d32a24dd1ff8719a77445272 100644 (file)
@@ -1,5 +1,11 @@
 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
 
+       * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
+       * omp_lib.h.in (openmp_version): Likewise.
+       * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
+       of 201307.
+       * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
+
        * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
        (fib_wrapper): Add map(from: x) clause.
        * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
index 149c2e44b9ff6f370f9479efbc296f9f2b156004..2e73ce5f93b9fb4c002548bb65c98779a98422b5 100644 (file)
@@ -59,7 +59,7 @@
       module omp_lib
         use omp_lib_kinds
         implicit none
-        integer, parameter :: openmp_version = 201307
+        integer, parameter :: openmp_version = 201511
 
         interface
           subroutine omp_init_lock (svar)
index 992a8635e48e0992340a5bbbbf92739dd42a2828..032b6573ee5bd43dd547c98206f4a94a2d5fcd96 100644 (file)
@@ -58,7 +58,7 @@
       parameter (omp_lock_hint_contended = 2)
       parameter (omp_lock_hint_nonspeculative = 4)
       parameter (omp_lock_hint_speculative = 8)
-      parameter (openmp_version = 201307)
+      parameter (openmp_version = 201511)
 
       external omp_init_lock, omp_init_nest_lock
       external omp_init_lock_with_hint
index be24adcca0c5fdcaa165662ab753558a7550b6a2..20ca78a9fed4fe2fefaacb62190314cdbd95da07 100644 (file)
@@ -4,6 +4,6 @@
       implicit none
       include "omp_lib.h"
 
-      if (openmp_version .ne. 201307) call abort;
+      if (openmp_version .ne. 201511) call abort;
 
       end program main
index 62712c7d206027c06f56d8e50a03a6358e991640..1e0dbec7bc4ff46ee1c7c1bd8e8ca2ff077bbc47 100644 (file)
@@ -4,6 +4,6 @@ program main
   use omp_lib
   implicit none
 
-  if (openmp_version .ne. 201307) call abort;
+  if (openmp_version .ne. 201511) call abort;
 
 end program main