Hi,

On Fri, 15 Apr 2016, Sergey Korshunoff wrote:

> pcc -o i386-tcc tcc.c -DONE_SOURCE -DTCC_TARGET_I386 -I.  -Wall -g -O0 -lm 
> -ldl
> /tmp/ctm.Uao6qA: In function `set_pages_executable':
> tccrun.c:238: undefined reference to `__clear_cache'
> error: ld terminated with status 1
> 
> But it is OK if we add lib/libtcc1.c

That might break when building with other compilers again, because 
libtcc1.c is the support routines for tcc, not for pcc or for e.g. GCC.  
So if pcc doesn't provide a __clear_cache implementation then it, and only 
it needs to be implemented by something in tcc.

So, the implementation of __clear_cache (and only it!) needs to be 
provided by tcc itself, but only when compiling with pcc.  I.e. some file 
splitting would be in order.


Ciao,
Michael.
(But why bother with pcc at all?)

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to