re PR libgomp/32468 (number of threads in a parallel region depends on number of...
authorJakub Jelinek <jakub@redhat.com>
Mon, 2 Jul 2007 19:22:47 +0000 (21:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 2 Jul 2007 19:22:47 +0000 (21:22 +0200)
commit69f1837b81f57ff588ffd82a3db0a7b739b446de
treee8a300b94b510ed658c3b719e55917d2e3346017
parent15c723f39fb55da9ee0f288ecac2c178b68b2a3c
re PR libgomp/32468 (number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS)

PR libgomp/32468
* omp-low.c (check_combined_parallel): New function.
(lower_omp_parallel): Call it via walk_stmts, set
OMP_PARALLEL_COMBINED if appropriate.
(determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
isn't the only statement in WS_ENTRY_BB or OMP_RETURN
the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
don't consider it as combined parallel.

* gcc.dg/gomp/pr32468-1.c: New test.

From-SVN: r126226
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr32468-1.c [new file with mode: 0644]