Commit 62bd6216 by Daniel Franke Committed by Daniel Franke

re PR libgomp/29949 (implement argument checking for user accessable runtime routines)

	PR libgomp/29949
	* env.c (omp_set_num_threads): Set illegal thread count to 1.

From-SVN: r119511
parent fe264e58
2006-12-04 Daniel Franke <franke.daniel@gmail.com>
PR libgomp/29949
* env.c (omp_set_num_threads): Set illegal thread count to 1.
2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr> 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
* configure: Regenerate. * configure: Regenerate.
......
...@@ -225,7 +225,7 @@ initialize_env (void) ...@@ -225,7 +225,7 @@ initialize_env (void)
void void
omp_set_num_threads (int n) omp_set_num_threads (int n)
{ {
gomp_nthreads_var = n; gomp_nthreads_var = (n > 0 ? n : 1);
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment