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 <ja...@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