tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] [TIPS?] array in struct initialization w/o '{', case3
Date: Sun, 8 Mar 2015 12:11:28 +0300

There is a code in the tccgen.c marked
        /* XXX: this test is incorrect for local initializers
           beginning with ( without {. It would be much more difficult
           to do it correctly (ideally, the expression parser should
           be used in all cases) */

This code is not executed for the OK cases. There is a patch attached
which remove this code. A test files are attached too. A J compiler
test is executed OK after this patch. Only one problem arises after
this, it is an empty struct initialization. Any tips to solve this
problem?

Attachment: tcc-jcompiler.diff
Description: Text document

Attachment: jcompiler-test.c
Description: Text Data

Attachment: struct-test-ok.c
Description: Text Data

Attachment: struct-test-fail.c
Description: Text Data


reply via email to

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