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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 50768
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50768&action=edit
pr99928.tar.xz

I think we should start by checking what we are missing from the handling of
the harder clauses on combined/composite constructs against the 5.0 2.14
section.
By the harder clauses I mean firstprivate, lastprivate,
firstprivate+lastprivate, linear (explicit non-IV, explicit IV, implicit IV),
reduction and in_reduction.
I've tried to construct testcases attached here that hopefully handle all
possible cases and now the gimple dump should be checked against the rules.
The rules are known to be buggy in 5.0, but let's assume that reduction even
without inscan is tofrom on target combined with it as it was meant (and then
mistakenly broken, fixed in 5.1).
I've noticed we don't handle in_reduction clause on target construct.

Reply via email to