diff mbox

[gomp-3.1] _OPENMP and openmp_version updates for OpenMP 3.1

Message ID 20110711174335.GK2687@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek July 11, 2011, 5:43 p.m. UTC
Hi!

OpenMP 3.1 has been released on Saturday, this patch adjusts the
macros/parameters for that on gomp-3_1-branch.  Apparently #pragma omp
atomic changed substantially from the draft and const vars are again
predetermined shared, but newly allowed in firstprivate.  Will adjust
the branch for that soon (and other differences I spot).  If anybody knows
about other draft to 3.1 differences, I'd appreciate details, the standards
don't have a version with visually highlighted changes from previous
standard unfortunately.

2011-07-11  Jakub Jelinek  <jakub@redhat.com>

	* omp_lib.f90.in (openmp_version): Change to 201107.
	* omp_lib.h.in (openmp_version): Likewise.

	* cpp.c (cpp_define_builtins): Change _OPENMP to 201107.

	* c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.


	Jakub
diff mbox

Patch

--- libgomp/omp_lib.f90.in.jj	2011-03-03 16:27:37.000000000 +0100
+++ libgomp/omp_lib.f90.in	2011-07-11 19:33:00.000000000 +0200
@@ -32,7 +32,7 @@ 
       module omp_lib
         use omp_lib_kinds
         implicit none
-        integer, parameter :: openmp_version = 200805
+        integer, parameter :: openmp_version = 201107
         integer (omp_sched_kind), parameter :: omp_sched_static = 1
         integer (omp_sched_kind), parameter :: omp_sched_dynamic = 2
         integer (omp_sched_kind), parameter :: omp_sched_guided = 3
--- libgomp/omp_lib.h.in.jj	2011-03-03 16:27:37.000000000 +0100
+++ libgomp/omp_lib.h.in	2011-07-11 19:33:11.000000000 +0200
@@ -33,7 +33,7 @@ 
       parameter (omp_sched_dynamic = 2)
       parameter (omp_sched_guided = 3)
       parameter (omp_sched_auto = 4)
-      parameter (openmp_version = 200805)
+      parameter (openmp_version = 201107)
 
       external omp_init_lock, omp_init_nest_lock
       external omp_destroy_lock, omp_destroy_nest_lock
--- gcc/fortran/cpp.c.jj	2011-07-11 17:45:03.000000000 +0200
+++ gcc/fortran/cpp.c	2011-07-11 19:30:16.000000000 +0200
@@ -1,4 +1,4 @@ 
-/* Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -166,7 +166,7 @@  cpp_define_builtins (cpp_reader *pfile)
   cpp_define (pfile, "_LANGUAGE_FORTRAN=1");
 
   if (gfc_option.gfc_flag_openmp)
-    cpp_define (pfile, "_OPENMP=200805");
+    cpp_define (pfile, "_OPENMP=201107");
 
   /* The defines below are necessary for the TARGET_* macros.
 
--- gcc/c-family/c-cppbuiltin.c.jj	2011-07-11 17:33:53.000000000 +0200
+++ gcc/c-family/c-cppbuiltin.c	2011-07-11 19:29:50.000000000 +0200
@@ -807,7 +807,7 @@  c_cpp_builtins (cpp_reader *pfile)
     cpp_define (pfile, "__SSP__=1");
 
   if (flag_openmp)
-    cpp_define (pfile, "_OPENMP=200805");
+    cpp_define (pfile, "_OPENMP=201107");
 
   if (int128_integer_type_node != NULL_TREE)
     builtin_define_type_sizeof ("__SIZEOF_INT128__",