diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-04-11 19:32:54 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-04-11 19:32:54 +0200 |
commit | e9329eb5869ee50d448ddd40489314e47363c02a (patch) | |
tree | d0aea9c90c9f68ddc9d3b8158f8c669005edd1b5 /gcc/testsuite/gcc.c-torture | |
parent | bc7e7ed3e350ea14c1c4e6432c8c1fb19b3c0668 (diff) | |
download | gcc-e9329eb5869ee50d448ddd40489314e47363c02a.zip gcc-e9329eb5869ee50d448ddd40489314e47363c02a.tar.gz gcc-e9329eb5869ee50d448ddd40489314e47363c02a.tar.bz2 |
re PR middle-end/65735 (ICE (in duplicate_thread_path, at tree-ssa-threadupdate.c))
PR tree-optimization/65735
* tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
Remove visited_phis argument, add visited_bbs, avoid recursing into the
same bb rather than just into the same phi node.
(thread_through_normal_block): Adjust caller.
* gcc.c-torture/compile/pr65735.c: New test.
From-SVN: r222011
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr65735.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr65735.c b/gcc/testsuite/gcc.c-torture/compile/pr65735.c new file mode 100644 index 0000000..c30de8e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr65735.c @@ -0,0 +1,21 @@ +/* PR tree-optimization/65735 */ + +int foo (void); + +void +bar (int a, int b, int c) +{ + while (!a) + { + c = foo (); + if (c == 7) + c = b; + switch (c) + { + case 1: + a = b++; + if (b) + b = 1; + } + } +} |