Thomas, This patch marks fopenacc as LTO option.
This allows fopenacc to be passed to lto, which means the openacc builtins are recognized when reading in the LTO stream. This fixes a number of testcases in the libgomp testsuite.
ok for gomp-4_0-branch? Thanks, - Tom
2014-11-03 Tom de Vries <t...@codesourcery.com> * c.opt (fopenacc): Mark as LTO option. * lang.opt (fopenacc): Mark as LTO option. diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 09951c9..fd5a615 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -1193,7 +1193,7 @@ ObjC ObjC++ Var(flag_objc1_only) Conform to the Objective-C 1.0 language as implemented in GCC 4.0 fopenacc -C ObjC C++ ObjC++ Var(flag_openacc) +C ObjC C++ ObjC++ LTO Var(flag_openacc) Enable OpenACC fopenmp diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index bbea334..48b47af 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -530,7 +530,7 @@ Fortran Set default accessibility of module entities to PRIVATE. fopenacc -Fortran +Fortran LTO ; Documented in C fopenmp -- 1.9.1