aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorgrischka <grischka>2017-07-23 21:24:11 +0200
committergrischka <grischka>2017-07-23 21:24:11 +0200
commit4b3c6e74aba07d61e91b2e0ba7190483a0f9f000 (patch)
tree8e91e83762d9c60dd81182b9d423f8addb3532f2 /win32
parentfdc18d307aafce6e8833b0eb26c1313da88cfc9a (diff)
downloadtinycc-4b3c6e74aba07d61e91b2e0ba7190483a0f9f000.tar.gz
tinycc-4b3c6e74aba07d61e91b2e0ba7190483a0f9f000.tar.bz2
tccgen: nodata_wanted fix, default ONE_SOURCE, etc...
tccgen.c: doubles need to be aligned, on ARM. The section_reserve() in init_putv does not do that. -D ONE_SOURCE: is now the default and not longer needed. Also, tcc.h now sets the default native target. These both make compiling tcc simple as "gcc tcc.c -o tcc -ldl" again. arm-asm.c: enable pseudo asm also for inline asm tests/tests2/Makefile: disable bitfield tests except on windows and x86_64 and don't generate-always tcc.c: fix a loop with -dt on errors configure: print compiler version (as recognized) tccpp.c: actually define symbols for tcc -dt clear static variables (needed for -dt or libtcc usage) 96_nodata_wanted.c: use __label__ instead of asm lib/files: use native symbols (__i386__ etc.) instead of TCC_TARGET_...
Diffstat (limited to 'win32')
-rw-r--r--win32/build-tcc.bat50
-rw-r--r--win32/lib/chkstk.S4
2 files changed, 27 insertions, 27 deletions
diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat
index 9a9184b..b234178 100644
--- a/win32/build-tcc.bat
+++ b/win32/build-tcc.bat
@@ -111,10 +111,10 @@ echo>> ..\config.h #endif
for %%f in (*tcc.exe *tcc.dll) do @del %%f
:compiler
-%CC% -o libtcc.dll -shared ..\libtcc.c %D% -DONE_SOURCE -DLIBTCC_AS_DLL
+%CC% -o libtcc.dll -shared ..\libtcc.c %D% -DLIBTCC_AS_DLL
@if errorlevel 1 goto :the_end
-%CC% -o tcc.exe ..\tcc.c libtcc.dll %D%
-%CC% -o %PX%-tcc.exe ..\tcc.c %DX% -DONE_SOURCE
+%CC% -o tcc.exe ..\tcc.c libtcc.dll %D% -DONE_SOURCE=0
+%CC% -o %PX%-tcc.exe ..\tcc.c %DX%
@if (%TCC_FILES%)==(no) goto :files-done
@@ -131,30 +131,30 @@ copy>nul tcc-win32.txt doc
:libtcc1.a
@set O1=libtcc1.o crt1.o crt1w.o wincrt1.o wincrt1w.o dllcrt1.o dllmain.o chkstk.o bcheck.o
-.\tcc -m32 %D32% -c ../lib/libtcc1.c
-.\tcc -m32 %D32% -c lib/crt1.c
-.\tcc -m32 %D32% -c lib/crt1w.c
-.\tcc -m32 %D32% -c lib/wincrt1.c
-.\tcc -m32 %D32% -c lib/wincrt1w.c
-.\tcc -m32 %D32% -c lib/dllcrt1.c
-.\tcc -m32 %D32% -c lib/dllmain.c
-.\tcc -m32 %D32% -c lib/chkstk.S
-.\tcc -m32 %D32% -w -c ../lib/bcheck.c
-.\tcc -m32 %D32% -c ../lib/alloca86.S
-.\tcc -m32 %D32% -c ../lib/alloca86-bt.S
+.\tcc -m32 -c ../lib/libtcc1.c
+.\tcc -m32 -c lib/crt1.c
+.\tcc -m32 -c lib/crt1w.c
+.\tcc -m32 -c lib/wincrt1.c
+.\tcc -m32 -c lib/wincrt1w.c
+.\tcc -m32 -c lib/dllcrt1.c
+.\tcc -m32 -c lib/dllmain.c
+.\tcc -m32 -c lib/chkstk.S
+.\tcc -m32 -w -c ../lib/bcheck.c
+.\tcc -m32 -c ../lib/alloca86.S
+.\tcc -m32 -c ../lib/alloca86-bt.S
.\tcc -m32 -ar lib/libtcc1-32.a %O1% alloca86.o alloca86-bt.o
@if errorlevel 1 goto :the_end
-.\tcc -m64 %D64% -c ../lib/libtcc1.c
-.\tcc -m64 %D64% -c lib/crt1.c
-.\tcc -m64 %D64% -c lib/crt1w.c
-.\tcc -m64 %D64% -c lib/wincrt1.c
-.\tcc -m64 %D64% -c lib/wincrt1w.c
-.\tcc -m64 %D64% -c lib/dllcrt1.c
-.\tcc -m64 %D64% -c lib/dllmain.c
-.\tcc -m64 %D64% -c lib/chkstk.S
-.\tcc -m64 %D64% -w -c ../lib/bcheck.c
-.\tcc -m64 %D64% -c ../lib/alloca86_64.S
-.\tcc -m64 %D64% -c ../lib/alloca86_64-bt.S
+.\tcc -m64 -c ../lib/libtcc1.c
+.\tcc -m64 -c lib/crt1.c
+.\tcc -m64 -c lib/crt1w.c
+.\tcc -m64 -c lib/wincrt1.c
+.\tcc -m64 -c lib/wincrt1w.c
+.\tcc -m64 -c lib/dllcrt1.c
+.\tcc -m64 -c lib/dllmain.c
+.\tcc -m64 -c lib/chkstk.S
+.\tcc -m64 -w -c ../lib/bcheck.c
+.\tcc -m64 -c ../lib/alloca86_64.S
+.\tcc -m64 -c ../lib/alloca86_64-bt.S
.\tcc -m64 -ar lib/libtcc1-64.a %O1% alloca86_64.o alloca86_64-bt.o
@if errorlevel 1 goto :the_end
diff --git a/win32/lib/chkstk.S b/win32/lib/chkstk.S
index 2726061..ec5c07f 100644
--- a/win32/lib/chkstk.S
+++ b/win32/lib/chkstk.S
@@ -2,7 +2,7 @@
/* chkstk86.s */
/* ---------------------------------------------- */
-#ifndef TCC_TARGET_X86_64
+#ifndef __x86_64__
/* ---------------------------------------------- */
.globl __chkstk
@@ -68,7 +68,7 @@ tinyc_getbp:
/* ---------------------------------------------- */
-#ifndef TCC_TARGET_X86_64
+#ifndef __x86_64__
/* ---------------------------------------------- */
/*