tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] longjmp not working on 64bit


From: Christian Jullien
Subject: [Tinycc-devel] longjmp not working on 64bit
Date: Fri, 11 Dec 2009 09:49:27 +0100

Simple example not working on Windows x64. It should print Ok but hangs even
buf seems to be correctly aligned.

#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>

int
main(int argc, char *argv[])
{
        jmp_buf  buf;

        if (setjmp(buf) == 0) {
                printf("ready to jump at %p\n", &buf);
                longjmp(buf, 1);
                printf("Not reached\n");
        }
        printf("Ok\n");

        return 0;
}

F:\tcc-0.9.25-64\win32>tcc foo.c && foo
ready to jump at 000000000012FE20

Looking at assembler gives me no clue.

Christian








reply via email to

[Prev in Thread] Current Thread [Next in Thread]