Just updated the source and now I get the unreachable error again.<br><br>The JIT doesn't know how to handle a RAUW on a value it has emitted.<br>
UNREACHABLE executed at /home/conrado/engines/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1542!<br><br>I think that it's not helpful now, but I can post the program, if you want me to.<br><br><div class="gmail_quote">
On Sun, Jan 31, 2010 at 2:49 PM, Jeffrey Yasskin <span dir="ltr"><<a href="mailto:jyasskin@google.com">jyasskin@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Jan 31, 2010 at 7:35 AM, Conrado Miranda<br>
<div class="im"><<a href="mailto:miranda.conrado@gmail.com">miranda.conrado@gmail.com</a>> wrote:<br>
</div><div class="im">> Great! It just worked. I was a bit worried about using pointers to call<br>
> functions because it's a little too overwhelming in a big project, I think.<br>
><br>
> Just for the record, if the function code isn't freed with<br>
> freeMachineCodeForFunction, I get a segmentation fault during<br>
> recompileAndRelinkFunction with this stack dump:<br>
> Running pass 'X86 Machine Code Emitter' on function '@do_print'<br>
<br>
</div><div><div></div><div class="h5">Well, it's not supposed to segfault. At worst, it should give you an<br>
assertion error when you do something wrong (when it's compiled with<br>
asserts, of course). Could you either file a bug, or send me the exact<br>
code you were using with the command line you used to compile it<br>
against svn head?<br>
<br>
Thanks,<br>
Jeffrey<br>
</div></div></blockquote></div><br>