tinycc-devel
[Top][All Lists]
Advanced

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

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


From: Milutin Jovanović
Subject: Re: [Tinycc-devel] Compiling preprocessed files with tinycc?
Date: Wed, 20 Mar 2013 01:02:50 -0400


This is only a filename, or precisely extension issue. If you rename your intermediate file from "stateblock.i" to "stateblock-i.c", I believe everything should work.

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


reply via email to

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