From: Jakub Jelinek Date: Thu, 4 Jul 2019 04:54:52 +0000 (+0200) Subject: re PR tree-optimization/91074 (c-c++-common/gomp/scan-3.c fails with ICE starting... X-Git-Tag: upstream/12.2.0~23460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c96b432c912a4c13e53df87050729554284ffa3;p=platform%2Fupstream%2Fgcc.git re PR tree-optimization/91074 (c-c++-common/gomp/scan-3.c fails with ICE starting with r272958) PR tree-optimization/91074 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx temporary. From-SVN: r273037 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2cfc446..8aed90a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2019-07-04 Jakub Jelinek + PR tree-optimization/91074 + * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx + temporary. + PR rtl-optimization/90756 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it for VECTOR_TYPE_P. diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 98a9df5..6e5b532 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -9699,6 +9699,7 @@ lower_omp_for_scan (gimple_seq *body_p, gimple_seq *dlist, gomp_for *stmt, gimple_seq_add_stmt (body_p, g); tree cplx = create_tmp_var (build_complex_type (unsigned_type_node, false)); + DECL_GIMPLE_REG_P (cplx) = 1; g = gimple_build_call_internal (IFN_MUL_OVERFLOW, 2, thread_nump1, twok); gimple_call_set_lhs (g, cplx); gimple_seq_add_stmt (body_p, g);