[Bug tree-optimization/82707] ICE in verify_gimple_in_cfg at tree-cfg.c:5395

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 26 09:22:00 GMT 2017


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Comment on attachment 42476
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42476
Updated tentative patch

Both TEAMS and SINGLE don't have any inlines that actually need gomp_teams or
gomp_single, they accept just gimple.  So for those please just avoid the {}s
and as_a, just do:
case GIMPLE_OMP_SINGLE:
  t = unshare_expr (gimple_omp_single_clauses (stmt));
  gimple_omp_single_set_clauses (copy, t);
  goto copy_omp_body;
etc.

For TARGET it is indeed needed for target_set_data_arg, so keep that one as is.
Preapproved with that change.


More information about the Gcc-bugs mailing list