[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Compiling preprocessed files with tinycc?
From: |
Austin English |
Subject: |
[Tinycc-devel] Compiling preprocessed files with tinycc? |
Date: |
Tue, 19 Mar 2013 20:10:28 -0700 |
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