[Top][All Lists]

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

Re: [Tinycc-devel] Compiling preprocessed files with tinycc?

From: Austin English
Subject: Re: [Tinycc-devel] Compiling preprocessed files with tinycc?
Date: Wed, 15 May 2013 23:25:50 -0700

Finally was able to get creduce to work (didn't fare so well in a vm
with 32-bit gentoo, but Ubuntu 12.10 in VirtualBox was able to do it.

I've attached a tarball with the testcase and the script used to test
for the bug (against Ubuntu's gcc-4.7.3 and Debian's gcc-4.7.2):
address@hidden:~/tcc-bug$ cat test.sh
set -x
gcc -Werror -c -I. -I. -I../../../include -I../../../include
-DWIDL_C_INLINE_WRAPPERS  -D_REENTRANT -fPIC  -I/usr/include/freetype2
   -g  -o stateblock.o stateblock-i.c || exit 1
tcc -c -I. -I. -I../../../include -I../../../include
-DWIDL_C_INLINE_WRAPPERS  -D_REENTRANT -fPIC  -I/usr/include/freetype2
   -g  -o stateblock.o stateblock-i.c 2>&1 | grep "error: '}' expected
(got \",\")"

FWIW, clang also accepts the reduced file with no complaints. Tested
against tinycc's mob trunk, current

Please let me know if you need more info / patches tested :).

On Thu, Mar 21, 2013 at 11:01 AM, Austin English
<address@hidden> wrote:
> On Wed, Mar 20, 2013 at 3:11 PM, Daniel Glöckner <address@hidden> wrote:
>> On Wed, Mar 20, 2013 at 01:01:10PM -0700, Austin English wrote:
>>> manually correcting that, I'm able to preprocess the problematic file down 
>>> to:
>>> address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ cat stateblock.i.tcc.c
>>> typedef struct _D3DVECTOR
>>> {
>>>   float x;
>>>   float y;
>>>   float z;
>>> } D3DMATRIX;
>> You are aware that D3DMATRIX is supposed to consist of 16 floats?
> Looks like delta foobared the program while minimalizing it. I'm
> retrying now with creduce, though it's taking quite a while..
> --
> -Austin


Attachment: tcc.tar
Description: Unix tar archive

reply via email to

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