This is the mail archive of the gcc-bugs@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]

[Bug middle-end/24703] [GOMP] Unable to compile OpenMP program with omp parallel for schedule(dynamic) directive



------- Comment #1 from rth at gcc dot gnu dot org  2005-11-08 22:41 -------
Subject: Bug 24703

Author: rth
Date: Tue Nov  8 22:40:55 2005
New Revision: 106662

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106662
Log:
        PR 24703
        * omp-low.c (determine_parallel_type): Disable combined parallel
        when OMP_FOR_PRE_BODY is not empty.

Added:
    branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-16.c   (with
props)
Modified:
    branches/gomp-20050608-branch/gcc/ChangeLog.gomp
    branches/gomp-20050608-branch/gcc/omp-low.c

Added: branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-16.c
URL:
http://gcc.gnu.org/viewcvs/branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-16.c?root=gcc&view=auto&rev=106662
==============================================================================
--- branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-16.c (added)
+++ branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-16.c Tue Nov  8
22:40:55 2005
@@ -1,0 +1,18 @@
+// PR 24703
+// { dg-do compile }
+
+void work(int);
+int work_param;
+int sphinx_omp_thread_count;
+int schedule_loop_cap;
+
+int measure_omp_parallel_for_dynamic (void)
+{
+  int j;
+
+#pragma omp parallel for schedule(dynamic)
+  for(j=0; j < sphinx_omp_thread_count * schedule_loop_cap; j++)
+    work(work_param);
+
+  return 0;
+}

Propchange: branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-16.c
            ('svn:mime-type' added)


-- 


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


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