From 6c96b432c912a4c13e53df87050729554284ffa3 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 4 Jul 2019 06:54:52 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 4 ++++ gcc/omp-low.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2cfc446ac34..8aed90ab9d1 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 98a9df583bc..6e5b5322a05 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); -- 2.30.2