aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivcanon.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-06-08 14:53:19 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-06-08 14:53:19 +0000
commitad3e2ba07405b81ed2c4729f63040ce2463c8108 (patch)
tree0a205221c4836a72e8edc9ffb5d1099bd9126a61 /gcc/tree-ssa-loop-ivcanon.c
parente50869f7a638328f609afc0cbfa77ccaa2cbe01a (diff)
downloadgcc-ad3e2ba07405b81ed2c4729f63040ce2463c8108.zip
gcc-ad3e2ba07405b81ed2c4729f63040ce2463c8108.tar.gz
gcc-ad3e2ba07405b81ed2c4729f63040ce2463c8108.tar.bz2
re PR tree-optimization/66422 (-Warray-bounds false positive with -O3)
2015-06-08 Richard Biener <rguenther@suse.de> PR tree-optimization/66422 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split block after inserted gcc_unreachable. * gcc.dg/Warray-bounds-16.c: New testcase. From-SVN: r224235
Diffstat (limited to 'gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r--gcc/tree-ssa-loop-ivcanon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c
index c561811..c1945d0 100644
--- a/gcc/tree-ssa-loop-ivcanon.c
+++ b/gcc/tree-ssa-loop-ivcanon.c
@@ -520,9 +520,9 @@ remove_exits_and_undefined_stmts (struct loop *loop, unsigned int npeeled)
gimple_stmt_iterator gsi = gsi_for_stmt (elt->stmt);
gcall *stmt = gimple_build_call
(builtin_decl_implicit (BUILT_IN_UNREACHABLE), 0);
-
gimple_set_location (stmt, gimple_location (elt->stmt));
gsi_insert_before (&gsi, stmt, GSI_NEW_STMT);
+ split_block (gimple_bb (stmt), stmt);
changed = true;
if (dump_file && (dump_flags & TDF_DETAILS))
{