Check-in [f49bec1323]
Overview
Comment:Updated to allow libtcc1.c to compile under TCC
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f49bec13231e03da4d631a1ec30e210190f7fe31
User & Date: rkeene on 2014-06-21 05:59:42
Other Links: manifest | tags
Context
2014-06-21
14:49
Updated to link to stubs check-in: 82593f3a0f user: rkeene tags: trunk
05:59
Updated to allow libtcc1.c to compile under TCC check-in: f49bec1323 user: rkeene tags: trunk
05:55
Updated to use "tcc" to produce object files on Mac OS X check-in: 929a77707a user: rkeene tags: trunk
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-crosscompilefixes.diff from [8fc05b07c4] to [23c0404150].

245
246
247
248
249
250
251














252
253
254
255
256
257
258
+	rm -rfv i386-win32 x86_64-win32 i386 x86_64 arm
diff -uNr tcc-0.9.26.orig/lib/dummy.c tcc-0.9.26-1crosscompilefixes/lib/dummy.c
--- tcc-0.9.26.orig/lib/dummy.c	1969-12-31 18:00:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/lib/dummy.c	2014-05-16 23:56:33.539016999 -0500
@@ -0,0 +1,2 @@
+void __libtcc_dummy(void) {
+}














diff -uNr tcc-0.9.26.orig/win32/lib/crt1.c tcc-0.9.26-1crosscompilefixes/win32/lib/crt1.c
--- tcc-0.9.26.orig/win32/lib/crt1.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/win32/lib/crt1.c	2014-05-02 01:56:11.277140003 -0500
@@ -19,7 +19,6 @@
 
 int _start(void)
 {







>
>
>
>
>
>
>
>
>
>
>
>
>
>







245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
+	rm -rfv i386-win32 x86_64-win32 i386 x86_64 arm
diff -uNr tcc-0.9.26.orig/lib/dummy.c tcc-0.9.26-1crosscompilefixes/lib/dummy.c
--- tcc-0.9.26.orig/lib/dummy.c	1969-12-31 18:00:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/lib/dummy.c	2014-05-16 23:56:33.539016999 -0500
@@ -0,0 +1,2 @@
+void __libtcc_dummy(void) {
+}
diff -uNr tcc-0.9.26.orig/lib/libtcc1.c tcc-0.9.26-1crosscompilefixes/lib/libtcc1.c
--- tcc-0.9.26.orig/lib/libtcc1.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/lib/libtcc1.c	2014-06-21 00:59:12.390011999 -0500
@@ -609,9 +609,9 @@
 
 /* helper functions for stdarg.h */
 
-#include <stdlib.h>
 #ifndef __TINYC__
 /* gives "incompatible types for redefinition of __va_arg" below */
+#include <stdlib.h>
 #include <stdio.h>
 #endif
 
diff -uNr tcc-0.9.26.orig/win32/lib/crt1.c tcc-0.9.26-1crosscompilefixes/win32/lib/crt1.c
--- tcc-0.9.26.orig/win32/lib/crt1.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1crosscompilefixes/win32/lib/crt1.c	2014-05-02 01:56:11.277140003 -0500
@@ -19,7 +19,6 @@
 
 int _start(void)
 {