This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gomp4.1] Change _OPENMP macro to 201511
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 9 Oct 2015 10:07:54 +0200
- Subject: [gomp4.1] Change _OPENMP macro to 201511
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
This changes it just for C/C++, as Fortran I'm afraid will have to wait
with OpenMP 4.5 support until GCC 6.2 (similarly to 4.0 support only
appearing in 4.9.1).
2015-10-09 Jakub Jelinek <jakub@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
201511 instead of 201307.
libgomp/
* env.c (handle_omp_display_env): Print _OPENMP = '201511'
instead of _OPENMP = '201307'.
--- gcc/c-family/c-cppbuiltin.c.jj 2015-09-03 16:35:59.000000000 +0200
+++ gcc/c-family/c-cppbuiltin.c 2015-10-09 09:56:49.832272991 +0200
@@ -1217,7 +1217,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "_OPENACC=201306");
if (flag_openmp)
- cpp_define (pfile, "_OPENMP=201307");
+ cpp_define (pfile, "_OPENMP=201511");
for (i = 0; i < NUM_INT_N_ENTS; i ++)
if (int_n_enabled_p[i])
--- libgomp/env.c.jj 2015-07-10 18:49:17.000000000 +0200
+++ libgomp/env.c 2015-10-09 09:58:22.606954544 +0200
@@ -1071,7 +1071,7 @@ handle_omp_display_env (unsigned long st
fputs ("\nOPENMP DISPLAY ENVIRONMENT BEGIN\n", stderr);
- fputs (" _OPENMP = '201307'\n", stderr);
+ fputs (" _OPENMP = '201511'\n", stderr);
fprintf (stderr, " OMP_DYNAMIC = '%s'\n",
gomp_global_icv.dyn_var ? "TRUE" : "FALSE");
fprintf (stderr, " OMP_NESTED = '%s'\n",
Jakub