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
This commit is contained in:
Daniel Franke 2006-12-04 16:35:19 -05:00 committed by Daniel Franke
parent fe264e58e1
commit 62bd621610
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
* configure: Regenerate.

View File

@ -225,7 +225,7 @@ initialize_env (void)
void
omp_set_num_threads (int n)
{
gomp_nthreads_var = n;
gomp_nthreads_var = (n > 0 ? n : 1);
}
void