On Tue, Mar 01, 2016 at 06:24:58PM +0100, Tom de Vries wrote:
> --- a/gcc/omp-low.c
> +++ b/gcc/omp-low.c
> @@ -3715,6 +3715,14 @@ check_omp_nesting_restrictions (gimple *stmt,
> omp_context *ctx)
> kind == OMP_CLAUSE_DEPEND_SOURCE ? "source" : "sink");
> return false;
> }
> + if (is_gimple_omp_offloaded (stmt)
> + && get_oacc_fn_attrib (cfun->decl) != NULL)
> + {
> + error_at (gimple_location (stmt),
> + "OpenACC region inside of OpenACC routine, nested "
> + "parallelism not supported yet");
> + return false;
> + }
Won't this emit the same error message even for
#pragma omp target
inside of #pragma acc routine function? That would be misleading...
Jakub