This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR tree-optimization/38632: ICE with try/catch and -ftree-parallelize-loops


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38632

was fixed by revision 146776:

http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg01418.html

I am checkin in this testcase.


H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 147400)
+++ ChangeLog	(working copy)
@@ -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
Index: g++.dg/tree-ssa/pr38632.C
===================================================================
--- g++.dg/tree-ssa/pr38632.C	(revision 0)
+++ g++.dg/tree-ssa/pr38632.C	(revision 0)
@@ -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;
+  }
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]