From: Daniel Franke Date: Mon, 4 Dec 2006 21:35:19 +0000 (-0500) Subject: re PR libgomp/29949 (implement argument checking for user accessable runtime routines) X-Git-Tag: releases/gcc-4.3.0~8138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62bd621610fefe92b6a8673c970623d071193786;p=thirdparty%2Fgcc.git 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 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index e704b2356f11..92b5600239aa 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2006-12-04 Daniel Franke + + PR libgomp/29949 + * env.c (omp_set_num_threads): Set illegal thread count to 1. + 2006-12-04 Eric Botcazou * configure: Regenerate. diff --git a/libgomp/env.c b/libgomp/env.c index af7e0c5c813e..f07b31b914b3 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -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