On Sat, Apr 15, 2000, Kevin Steves wrote:
> Compiling truerand.c with HP's compiler and +O3 generates
> a number of warnings:
>
> cc: truerand(): warning 6005: Infinite loop detected. Check for spinning on
>non-volatile variable. (6005)
> cc: n_truerand(): warning 6005: Infinite loop detected. Check for spinning on
>non-volatile variable. (6005)
>
> And it does go into an infinite loop when run.
>
> The following patch seems to fix this:
>
> --- pkg.contrib/truerand.c~ Thu Jul 29 15:59:07 1999
> +++ pkg.contrib/truerand.c Thu Apr 13 14:48:50 2000
> @@ -48,7 +48,7 @@
> #include <sys/time.h>
>
> static jmp_buf env;
> -static unsigned count;
> +volatile static unsigned count;
> static unsigned ocount;
> static unsigned buffer;
Thanks. I've comitted this for mod_ssl 2.6.3 together
with a few other cleanups for truerand.c.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]