Could you please be a little be more specific.  Can you reduce your
problem to a reproducible test case and also tell us the exact command
line you use for compilation and the platform you compile for?

There can be numerous reasons for a call not being executed.  For example
it can be in a "dead" part of the program or there can be a bug in the
compiler, or your program runs through a preprocessor which eliminates
the call to rand(). Without an actual code and the exact command line
we can not tell.


On Sun, 15 Jun 2008, Reginald Beardsley wrote:

> I've discovered that turning on any optimization causes calls to rand() to be 
> almost completely ellided.  Out of 20,000 calls, only ~4 actually get made.
>
> google & sun solve both fail to turn up any mention of the problem or mention 
> of a pragma that would prevent this.
>
> What am I missing?
>
> Thanks,
> Reg
> --
> This message posted from opensolaris.org
> _______________________________________________
> tools-compilers mailing list
> tools-compilers at opensolaris.org
>


Reply via email to