Hi! The following test hangs when compiled with tcc after 737f98421
      tccgen.c: Bug fix for 992cbda and 3ff77a1: set nocode_wanted.
      tests/tests2/78_vla_label.*: Add test

fantoo 222 # ./vla_label_fix_problem.sh
begin
timeout=2

extern int printf(const char *format, ...);
static void kb_wait(void)
{
    unsigned long timeout = 2;
    do {
        (1 ?.
            printf("timeout=%ld\n", timeout) :
            ({
                unsigned long msec=1;
                while (msec--)
                    printf("error\n");
            })
        );
        timeout--;
    } while (timeout);
}
int main()
{
    printf("begin\n");
    kb_wait();
    printf("end\n");
    return 0;
}

PS: this problem cause tccboot kernel (linux 2.4.26) to hang when using
current tcc to compile it (only on real hardware, no problem with my
version of the VirtualBox)

PPS: tccboot sources will be placed on github soon. tcc compiler is used to
compile kernel  and ISO image produced.

Attachment: vla_label_fix_problem.tgz
Description: GNU Zip compressed data

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to