[Bug c++/93465] [10 Regression] ICE in oacc_verify_routine_clauses, at omp-general.c:1802 since r10-471-gb48f44bf77a39fef

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 28 12:05:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93465

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
>From reading oacc_verify_routine_clauses, it seems that from OpenACC pragmas on
a FUNCTION_DECL "omp declare target" attribute will have always non-NULL
TREE_VALUE and (at least right now - for host/nohost we use separate attribute)
from OpenMP pragmas will have NULL TREE_VALUE.  So oacc_verify_routine_clauses
either could complain about mixing OpenMP and OpenACC pragmas on the same decl,
or could allow NULL TREE_VALUE and treat it as something (say seq).


More information about the Gcc-bugs mailing list