[patch, gomp] PR29949 - implement argument checking for user accessable runtime routines

Daniel Franke franke.daniel@gmail.com
Thu Nov 23 21:34:00 GMT 2006


:ADDPATCH libgomp:

If the argument passed to omp_set_num_threads is negative or zero, set the
number of threads to 1.

Tested on i686-pc-linux-gnu.


2006-11-23  Daniel Franke  <franke.daniel@gmail.com>

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


If this is ok for trunk/4.2, could someone be so kind to commit it? (*)

Regards
	Daniel


(*) I do not have write privileges to svn, but yes, the paperwork with FSF is
done.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgomp_env.c.diff
Type: text/x-diff
Size: 293 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061123/6abb6c4c/attachment.bin>


More information about the Gcc-patches mailing list