re PR tree-optimization/91074 (c-c++-common/gomp/scan-3.c fails with ICE starting...
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Jul 2019 04:54:52 +0000 (06:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Jul 2019 04:54:52 +0000 (06:54 +0200)
PR tree-optimization/91074
* omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
temporary.

From-SVN: r273037

gcc/ChangeLog
gcc/omp-low.c

index 2cfc446ac342506ba20b7cd763e28751aa572441..8aed90ab9d1ce5436d3290704337582b2a21e393 100644 (file)
@@ -1,5 +1,9 @@
 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
 
+       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.
index 98a9df583bccfc4128d2650bfed2453190853f23..6e5b5322a05cb9774a94947872a608eb2214fdf2 100644 (file)
@@ -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);