The tcc compiled with gcc can pass "tcctest.c" but a tcc compiled by tcc
can't .


On Mon, Mar 24, 2014 at 1:13 AM, Domingo Alvarez Duarte
<[email protected]>wrote:

> 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 <
> [email protected]> 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 <
>> [email protected]> 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 !
>>>
>>
>>
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to