aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-07-04 06:54:52 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-07-04 06:54:52 +0200
commit6c96b432c912a4c13e53df87050729554284ffa3 (patch)
tree19515472b744dd814afa2ba44581206c3dc5204b /gcc
parenta59b2e42062f2d00fb44a008cd395d0b9590c631 (diff)
downloadgcc-6c96b432c912a4c13e53df87050729554284ffa3.zip
gcc-6c96b432c912a4c13e53df87050729554284ffa3.tar.gz
gcc-6c96b432c912a4c13e53df87050729554284ffa3.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/omp-low.c1
2 files changed, 5 insertions, 0 deletions
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 <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.
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);