public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gomp4.1] Change _OPENMP macro to 201511
@ 2015-10-09  8:08 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2015-10-09  8:08 UTC (permalink / raw)
  To: gcc-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-09  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-09  8:08 [gomp4.1] Change _OPENMP macro to 201511 Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).