[LLVMdev] How to solve missing srand48/lrand48/drand48?

Morten Ofstad morten at hue.no
Tue Oct 19 07:19:54 PDT 2004


Paolo Invernizzi wrote:
> Morten,
> have a look at the 
> http://mail.cs.uiuc.edu/pipermail/llvmdev/2004-September/002235.html 
> thread...

OK, I understand now -- I have made a patch which wraps those functions 
in a #ifdef HAVE_RAND48 which I hope someone can add to the configure 
process. I also added a new plain rand function, since it did not make 
much sense to have the plain srand without having the corresponding rand...

There is only a few problems left now which I have not submitted patches 
for, one is the user defined hash functions which have to be done 
differently with the Visual C STL implementation and then there is the 
linking problem which has been discussed at great length and the 
variable length array which no patch has been accepted for.

When these problems are resolved, the visual studio project files can be 
put into the CVS. I have custom build steps which does the configuration 
(using gnuwin32 sed) and the tablegen process (although not in a very 
maintainable way) so it will be possible to build the complete fibonacci 
example from the sources in CVS with no manual steps.

m.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041019/c5243c61/attachment.txt>


More information about the llvm-dev mailing list