Check-in [93b2be7812]
Overview
Comment:Updated with fixes for TCC on Win32
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tcc
Files: files | file ages | folders
SHA1:93b2be78123ddd47c52ad272740d7148016d891d
User & Date: rkeene on 2014-04-28 20:36:03
Other Links: manifest | tags
Context
2014-04-28
20:36
Added TclTCC check-in: c8641be07e user: rkeene tags: trunk
20:36
Updated with fixes for TCC on Win32 Closed-Leaf check-in: 93b2be7812 user: rkeene tags: tcc
16:33
Updated to more accepting of C compilers when fixing up TCC check-in: 35718d9982 user: rkeene tags: tcc
Changes

Added tcc/patches/all/tcltcc-0.4-fixstaticwin32.diff version [20767a1a7f].

            1  +diff -uNr tcltcc-0.4.orig/generic/win32/tccpe.c tcltcc-0.4-1fixstaticwin32/generic/win32/tccpe.c
            2  +--- tcltcc-0.4.orig/generic/win32/tccpe.c	2007-11-07 10:04:32.000000000 -0600
            3  ++++ tcltcc-0.4-1fixstaticwin32/generic/win32/tccpe.c	2014-04-28 15:19:49.340645002 -0500
            4  +@@ -397,7 +397,7 @@
            5  +     return sym_index;
            6  + }
            7  + 
            8  +-#ifdef WIN32
            9  ++#if defined(WIN32) && !defined(CONFIG_TCC_STATIC)
           10  + ST void **pe_imp;
           11  + ST int nb_pe_imp;
           12  + 

Modified tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh from [b31d022289] to [b66c99e82c].

     1      1   #! /bin/bash
            2  +
            3  +set -x
     2      4   
     3      5   function find_syms() {
     4         -	if [ -z "${NM}" ]; then
     5         -		if echo "${CC}" | sed 's@ .*$@@' | grep '[-]' >/dev/null; then
     6         -			NM="$(echo "${CC}" | sed 's@ .*$@@;s@\(.*\)-[^-]*$@\1-nm@')"
     7         -		else
     8         -			NM='nm'
     9         -		fi
    10         -	fi
            6  +	set -x
    11      7   
    12         -	# "${NM}" "${LIBTCL}" | sed 's@:.*$@@' | sed 's@.* @@' | grep '^Tcl_' | sort -u | while read -r sym; do
    13         -	${CC:-gcc} ${CPPFLAGS} -E include/tcl.h  | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@(.*@@;s@.* *\**  *@@'  | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do
            8  +	${CC:-gcc} ${CPPFLAGS} -E include/tcl.h  | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@([^(]*$@@;s@.* *\**  *@@'  | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do
    14      9   		echo "    TCCSYM($sym)"
    15     10   	done
    16     11   }
    17     12   
    18     13   add="$(find_syms)"
    19     14   
    20     15   awk -v add="${add}" '/TCCSyms tcc_syms.*=/{