[LLVMdev] llvm hangs: fibonacci numbers, recursive

Jeffrey Yasskin jyasskin at google.com
Wed Mar 3 10:26:28 PST 2010


On Wed, Mar 3, 2010 at 9:51 AM, Elmar Stellnberger <elmstel at gmail.com> wrote:
>  Having tried out llvm I had to notice that the fibonacci example
> program hangs after short:
>> ./run fib
> 1
> 1
> 2
> 3
> 5
> 8
> ^C
>
> For the next number it would be supposed to last twice as long as for 8.
> However it hangs forever instead.
>
> using llvm-2.5-0.pm.1.1.x86_64

This program works for me with LLVM at trunk. You probably need to
upgrade, at least to 2.6, and maybe to trunk
(http://llvm.org/releases/).




More information about the llvm-dev mailing list