From 2865f32a961fb86ea0d20e5fabd6bbe5b477864f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 19 Nov 2014 10:50:58 +0100 Subject: [PATCH] re PR tree-optimization/63915 (gomp/pr60823-2.c:31:1: error: dead STMT in EH table) PR tree-optimization/63915 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass true instead of false as last argument to gsi_replace. * c-c++-common/gomp/pr60823-4.c: New test. From-SVN: r217759 --- gcc/ChangeLog | 4 ++++ gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/c-c++-common/gomp/pr60823-4.c | 7 +++++++ gcc/tree-vect-stmts.c | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/c-c++-common/gomp/pr60823-4.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eeae399a676..ff9fe1e8b57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2014-11-19 Jakub Jelinek + PR tree-optimization/63915 + * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass + true instead of false as last argument to gsi_replace. + PR sanitizer/63520 * internal-fn.c (expand_ubsan_result_store): New function. (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c69393c9e92..08a6c234acc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2014-11-19 Jakub Jelinek + PR tree-optimization/63915 + * c-c++-common/gomp/pr60823-4.c: New test. + PR sanitizer/63520 * c-c++-common/ubsan/pr63520.c: New test. diff --git a/gcc/testsuite/c-c++-common/gomp/pr60823-4.c b/gcc/testsuite/c-c++-common/gomp/pr60823-4.c new file mode 100644 index 00000000000..a9bc0fa2591 --- /dev/null +++ b/gcc/testsuite/c-c++-common/gomp/pr60823-4.c @@ -0,0 +1,7 @@ +/* PR tree-optimization/63915 */ +/* { dg-do run } */ +/* { dg-require-effective-target vect_simd_clones } */ +/* { dg-options "-O2 -fopenmp-simd" } */ +/* { dg-additional-options "-fpic" { target fpic } } */ + +#include "pr60823-2.c" diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index f877feaf347..e9859f7d8e5 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -3195,7 +3195,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, set_vinfo_for_stmt (new_stmt, stmt_info); set_vinfo_for_stmt (stmt, NULL); STMT_VINFO_STMT (stmt_info) = new_stmt; - gsi_replace (gsi, new_stmt, false); + gsi_replace (gsi, new_stmt, true); unlink_stmt_vdef (stmt); return true; -- 2.30.2