[gomp] Fix up _OPENMP define in Fortran (PR fortran/36597)

Jakub Jelinek jakub@redhat.com
Mon Jun 23 10:11:00 GMT 2008


Hi!

Fortran now apparently has its own copy of the _OPENMP
macro define, which needs to be changed with the support of OpenMP 3.0
too (that didn't exist when I've committed the fix on gomp-3_0-branch
almost a month ago).

2008-06-23  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/36597
	* cpp.c (cpp_define_builtins): Change _OPENMP value to 200805.

--- gcc/fortran/cpp.c.jj	2008-06-11 23:42:39.000000000 +0200
+++ gcc/fortran/cpp.c	2008-06-23 10:41:01.000000000 +0200
@@ -167,7 +167,7 @@ cpp_define_builtins (cpp_reader *pfile)
   cpp_define (pfile, "_LANGUAGE_FORTRAN=1");
 
   if (gfc_option.flag_openmp)
-    cpp_define (pfile, "_OPENMP=200505");
+    cpp_define (pfile, "_OPENMP=200805");
 
 
   /* More builtins that might be useful, but are not documented

	Jakub



More information about the Gcc-patches mailing list