tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] vla_label_fix_problem


From: Sergey Korshunoff
Subject: [Tinycc-devel] vla_label_fix_problem
Date: Sun, 3 Apr 2016 09:18:22 +0300

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


reply via email to

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