diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-12 00:09:17 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-12 00:09:17 +0000 |
commit | e41cb1f2fd5cb14cedce1c6b374a683d76ca0e18 (patch) | |
tree | f7bb2eab14e5375cb9c2f725224a62b46d0941ca /gcc | |
parent | a111083a0c09b453abdcb039e8178358c5be3d6d (diff) | |
download | gcc-e41cb1f2fd5cb14cedce1c6b374a683d76ca0e18.tar.gz |
2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/38632
* g++.dg/tree-ssa/pr38632.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/pr38632.C | 22 |
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f0f45fc2fa3..b6b0949c3de 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-05-11 H.J. Lu <hongjiu.lu@intel.com> + + PR tree-optimization/38632 + * g++.dg/tree-ssa/pr38632.C: New. + 2009-05-11 Jan Hubicka <jh@suse.cz> * gcc.dg/tree-ssa/pr21829.c: Simplify matching since diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr38632.C b/gcc/testsuite/g++.dg/tree-ssa/pr38632.C new file mode 100644 index 00000000000..04fca228021 --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr38632.C @@ -0,0 +1,22 @@ +// { dg-do compile } +// { dg-require-effective-target pthread } +// { dg-options "-O -ftree-parallelize-loops=2" } + +void foo(); + +void bar(int n, char *p) +{ + try + { + foo(); + ++n; + foo(); + for (int i = 0; i < n-1; ++i) + p[i] = 0; + } + catch (...) + { + for (int i = 0; i < n; ++i) + p[i] = 0; + } +} |