[LLVMdev] Plea for help
Chris Lattner
sabre at nondot.org
Wed May 5 10:36:14 PDT 2004
On Wed, 5 May 2004, Finn S Andersen wrote:
> Chris Lattner wrote:
>
> >Could you try compiling and running this program:
> >
> >---
> >#include <limits>
> >#include <iostream>
> >int main() {
> > std::cerr << std::numeric_limits<float>::infinity() << "\n";
> >}
> >---
> >
> >
> Sure thing. It prints "0". Calling that inifinity is somewhat
> of a stretch, isn't it ?
Well I think that explains why the linscan allocator doesn't work for you!
:)
It looks like numeric_limits::infinity has had a line of problems:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5527
http://lists.suse.com/archive/suse-programming-e/2003-Mar/0004.html
> What on earth is going on here?
I think that we should switch to C constants in this case. Can you try
#include <math.h> and use HUGE_VAL instead?
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
More information about the llvm-dev
mailing list