tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Release Candidate - please test


From: Alexander Gladysh
Subject: Re: [Tinycc-devel] Release Candidate - please test
Date: Sun, 9 Mar 2008 21:37:46 +0300

>  I made it compile with help of Google (so, that's pretty much a
>  Cargo-cult programming).
>  However make test segfaults. See logs below. Would try do disable the
>  feature as you've suggested.

I disabled feature, but tests segfault as well. Stacktrace is identical.

Alexander.

Patch:

diff --git a/bcheck.c b/bcheck.c
index 0ec2a4b..d9ff138 100644
--- a/bcheck.c
+++ b/bcheck.c
@@ -21,7 +21,8 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <string.h>
-#if !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
+#if !defined(__FreeBSD__) && !defined(__DragonFly__) \
+ && !defined(__OpenBSD__) && !defined(__APPLE__)
 #include <malloc.h>
 #endif

@@ -37,7 +38,7 @@
 #define HAVE_MEMALIGN

 #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__dietlibc__) \
-    || defined(__UCLIBC__) || defined(__OpenBSD__)
+    || defined(__UCLIBC__) || defined(__OpenBSD__) || defined(__APPLE__)
 #warning Bound checking not fully supported in this environment.
 #undef CONFIG_TCC_MALLOC_HOOKS
 #undef HAVE_MEMALIGN
diff --git a/config.mak b/config.mak
index 89ee875..b553d2f 100644
--- a/config.mak
+++ b/config.mak
@@ -18,4 +18,4 @@ LIBSUF=.a
 EXESUF=
 ARCH=i386
 VERSION=0.9.24
-SRC_PATH=/Users/agladysh/build/tcc-0.9.24
+SRC_PATH=/Users/agladysh/projects/tcc
diff --git a/tcc.c b/tcc.c
index 56b8069..9491f6f 100644
--- a/tcc.c
+++ b/tcc.c
@@ -9831,7 +9831,7 @@ static void rt_printline(unsigned long wanted_pc)
     fprintf(stderr, "\n");
 }

-#if !defined(_WIN32) && !defined(CONFIG_TCCBOOT)
+#if !defined(_WIN32) && !defined(CONFIG_TCCBOOT) && !defined(__APPLE__)

 #ifdef __i386__

@@ -10012,7 +10012,7 @@ int tcc_run(TCCState *s1, int argc, char **argv)
     prog_main = tcc_get_symbol_err(s1, "main");

     if (do_debug) {
-#if defined(_WIN32) || defined(CONFIG_TCCBOOT)
+#if defined(_WIN32) || defined(CONFIG_TCCBOOT) || defined(__APPLE__)
         error("debug mode currently not available for Windows");
 #else
         struct sigaction sigact;




reply via email to

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