Index: config/nvptx/nvptx.c =================================================================== --- config/nvptx/nvptx.c (revision 227582) +++ config/nvptx/nvptx.c (working copy) @@ -3744,7 +3744,7 @@ nvptx_xform_lock (gimple stmt, const int *ARG_UNUS return mode > GOMP_DIM_WORKER; case IFN_GOACC_LOCK_INIT: - return force_global_lock || mode != GOMP_DIM_WORKER; + return force_global_locks || mode != GOMP_DIM_WORKER; default: gcc_unreachable(); }