diff options
author | Richard Guenther <rguenther@suse.de> | 2010-11-09 16:54:05 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-11-09 16:54:05 +0000 |
commit | a3357f7dffc52969c120c2ecb9f1c013833ccb9b (patch) | |
tree | 753d495c70dbddff79d759e0baeab03d162cb294 /gcc/testsuite/gcc.dg/pr46355.c | |
parent | 0644953e64a91b24e2504900aa70e394c28ffc51 (diff) | |
download | gcc-a3357f7dffc52969c120c2ecb9f1c013833ccb9b.zip gcc-a3357f7dffc52969c120c2ecb9f1c013833ccb9b.tar.gz gcc-a3357f7dffc52969c120c2ecb9f1c013833ccb9b.tar.bz2 |
re PR tree-optimization/46355 (ICE: SIGSEGV in create_preheader (cfgloopmanip.c:1336) with -O -fstrict-overflow -ftree-loop-distribution)
2010-11-09 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46355
* tree-loop-distribution.c (tree_loop_distribution): Do not
distribute loops without a single exit.
* gcc.dg/pr46355.c: New testcase.
From-SVN: r166498
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr46355.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr46355.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr46355.c b/gcc/testsuite/gcc.dg/pr46355.c new file mode 100644 index 0000000..e644ec5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr46355.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O -ftree-loop-distribution -fstrict-overflow" } */ + +void +foo (int *dest, int i, int u, int v) +{ + int j = i; + while (i) + { + dest[j--] = v; + dest[j--] = u; + } +} + |