[LLVMdev] Plea for help

Finn S Andersen finna at synputer.com
Thu May 6 09:07:02 PDT 2004


Chris Lattner wrote:

>I think that we should switch to C constants in this case.  Can you try
>#include <math.h> and use HUGE_VAL instead?
>
It works:

[finna at coplin11 ~/test]$ cat tst.cpp
#include <limits>
#include <iostream>
#include <math.h>
int main() {
  std::cerr << std::numeric_limits<float>::infinity() << "\n";
  std::cerr << HUGE_VAL << "\n";
}
[finna at coplin11 ~/test]$ g++ tst.cpp
[finna at coplin11 ~/test]$ ./a.out
0
inf
[finna at coplin11 ~/test]$

But making the consequential changes in LLVM seems trickier.
Do you plan to correct it in CVS, or is there a path I can follow
to fix it myself on my own installation ?

Best regard
/Finn






More information about the llvm-dev mailing list