This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, gomp]: Reject negative values for env variables


Hello!

Strange things happens when i.e. OMP_NUM_THREADS is set to -1.

Attached patch rejects negative (and in some cases zero) values for
OMP environment variables.

Patch was bootstrapped on i686-pc-linux-gnu.

2006-10-26 Uros Bizjak <uros@kss-loka.si>

	* env.c (parse_schedule): Reject out of range or negative values.
	(parse_unsigned_long): Reject out of range, negative or zero values.

Uros.

Attachment: gomp-env.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]