<div dir="ltr">Is setjmp/longjmp what you have in mind?  <br>Is there a timeline for implementing unwind in codegen?  I guess I don't strictly need it, but it would be really handy.<br><br><div class="gmail_quote">On Thu, Jul 31, 2008 at 9:19 AM, Marc de Kruijf <span dir="ltr"><<a href="mailto:dekruijf@cs.wisc.edu">dekruijf@cs.wisc.edu</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;"><div dir="ltr"><br><br><div class="gmail_quote"><div class="Ih2E3d">On Thu, Jul 31, 2008 at 2:19 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</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;">
Hi,<br>
<div><br>
> Can anyone tell me if invoke/unwind is stable in 2.3?  I'm seeing some<br>
> really weird stuff -- unwinds are ending up in seemingly arbitrary places...<br>
> definitely not inside the caller's unwind block  My target is x86.<br>
<br>
</div>codegen doesn't know how to handle "unwind" on any target.  You need<br>
to call the libgcc unwinding routines directly (or indirectly by<br>
pretending to be C++ or some other language, and calling eg cxa_throw).</blockquote></div><div><br>I'm not familiar with the libgcc unwinding routines.  What do these look like and where might I read more about them?  Or maybe someone can provide an example?  For instance, how could I do it for my little dummy program?<br>

 <br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div><br>
> As a simple test, I tried to compile the following code and I got a<br>
> segmentation fault.  It looks good to me.  Can someone help me out or is<br>
> this a bug?<br>
<br>
</div>It's a bug that it's not supported.  Supporting it is not so easy<br>
to do, which is why it's still unsupported...<br>
</blockquote></div><div><br>It would be nice if this was documented somewhere, although I understand the difficulties in keeping documentation up-to-date.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Ciao,<br>
<font color="#888888"><br>
Duncan.<br>
</font></blockquote></div><br></div>
</blockquote></div><br></div>