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): austin@debian-home:~/tcc-bug$ cat test.sh #!/bin/bash set -x gcc -Werror -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -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 -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -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 47305d427d27c3a93c1ddc9a09075602f75243bc. Please let me know if you need more info / patches tested :). On Thu, Mar 21, 2013 at 11:01 AM, Austin English <[email protected]> wrote: > On Wed, Mar 20, 2013 at 3:11 PM, Daniel Glöckner <[email protected]> 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: >>> austin@debian-home:~/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 -- -Austin
tcc.tar
Description: Unix tar archive
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
