diff mbox

[gomp4.1] Change _OPENMP macro to 201511

Message ID 20151009080754.GC8714@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Oct. 9, 2015, 8:07 a.m. UTC
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'.


	Jakub
diff mbox

Patch

--- 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",