Miki.
On 19 March 2013 23:10, Austin English
<address@hidden> wrote:
Howdy,
I'm trying to narrow down a file that fails to compile with tinycc,
but works with gcc/clang. The exact error is:
stateblock.c:875: error: '}' expected (got ",")
I wanted to use multidelta to reduce the testcase, but quickly found
that trying to recompile a preprocessed file with tcc fails:
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ tcc -E -I.
-I../../../include -DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT
-fPIC -I/usr/include/freetype2 -o stateblock.i stateblock.c
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ echo $?
0
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ tcc -c -I.
-I../../../include -DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT
-fPIC -I/usr/include/freetype2 -o stateblock.o stateblock.i
stateblock.i:1: error: unrecognized file type
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ echo $?
1
but this works with gcc/clang:
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ gcc -E -I.
-I../../../include -DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT
-fPIC -I/usr/include/freetype2 -o stateblock.i stateblock.c
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ echo $?
0
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ gcc -c -I.
-I../../../include -DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS -D_REENTRANT
-fPIC -I/usr/include/freetype2 -o stateblock.o stateblock.i
address@hidden:~/src/wine-tcc/dlls/d3d8/tests$ echo $?
0
Is it possible to get tcc to use the preprocessed source?
Thanks in advance,
-Austin
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel