tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Tinycc without globals first try


From: Domingo Alvarez Duarte
Subject: Re: [Tinycc-devel] Tinycc without globals first try
Date: Mon, 24 Mar 2014 01:13:51 +0000

The problem is with jump to a computed goto:
void goto_test()
{
    int i;
    static void *label_table[3] = { &&label1, &&label2, &&label3 };
...
    for(i=0;i<3;i++) {
        goto *label_table[i]; <<<<< here is the crash but on arm it works fine ?????


On Mon, Mar 24, 2014 at 12:36 AM, Domingo Alvarez Duarte <address@hidden> wrote:
I found a few more problems with my code refactoring and fixed then, now I found that the test "goto_test()" is the one that crash if I comment it all others pass.

Testing on arm all tests pass including the "goto_test()", so is something with the labels calculation/generation.

I'm trying to figure out what the problem is, meanwhile if someone with more knowledge on tinycc can give a help it's welcome.

Thanks again for your time and attention !



On Sun, Mar 23, 2014 at 12:28 AM, Domingo Alvarez Duarte <address@hidden> wrote:
Hello !

I've been refactoring tinycc to remove global variables and work only with TCCState after several attempts I finaly got it on a initial working state using netbeans to do most of the refactoring work.

Testing it on a nexus five running Ubuntu 13.10 with "make test" all tests pass

On Ubuntu 12.04 X86_64 the tcctest.c segfault the with "make test -i" then others seem to passs

I hosted on https://github.com/mingodad/tinycc it is a big patch because it adds TCCState parameter to most of the functions.

I hope it can be accepted to be incorparated to the main the official repository after it stabilize, any help/sugestion are welcome.

Thanks in advance for your time and attention !



reply via email to

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