Displaying 2 results from an estimated 2 matches for "b16136dd".
2011 Apr 27
0
[LLVMdev] built-in longjmp and setjmp
...setjmp (buf)))
> > {
> > printf("n = %d\n", n);
> > return 0;
> > }
>
>
> /jakob
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110427/b16136dd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setjmp6.arm.s
Type: application/octet-stream
Size: 1765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110427/b16136dd/attachment.obj>
--------------...
2011 Apr 13
3
[LLVMdev] built-in longjmp and setjmp
On Apr 13, 2011, at 9:51 AM, Akira Hatanaka wrote:
> int
> main (int argc, char** argv)
> {
> int n = atoi(argv[1]), r;
>
> if ((r = setjmp (buf)))
> {
> printf("n = %d\n", n);
> return 0;
> }
Non-volatile local variables are not preserved by setjmp(), so this program can print whatever it wants.
/jakob