aboutsummaryrefslogtreecommitdiff
path: root/lib/bcheck.c
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-06 19:01:07 +0100
committergrischka <grischka>2013-02-06 19:01:07 +0100
commit7a477d70cabe15fa66fd0f32fab5e95841a500e5 (patch)
tree93e20aacb3f5ede1dda9ed987fc4558ebc17a9cf /lib/bcheck.c
parent92024ab07ad8e1c4a05f90add3d3ca7932251016 (diff)
downloadtinycc-7a477d70cabe15fa66fd0f32fab5e95841a500e5.tar.gz
tinycc-7a477d70cabe15fa66fd0f32fab5e95841a500e5.tar.bz2
lib/Makefile: use CC, add bcheck to libtcc1.a
Also: - fix "make tcc_p" (profiling version) - remove old gcc flags: -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 - remove test "hello" for Darwin (cannot compile to file)
Diffstat (limited to 'lib/bcheck.c')
-rw-r--r--lib/bcheck.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bcheck.c b/lib/bcheck.c
index 998e304..54124b9 100644
--- a/lib/bcheck.c
+++ b/lib/bcheck.c
@@ -41,7 +41,8 @@
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|| defined(__DragonFly__) || defined(__dietlibc__) \
- || defined(__UCLIBC__) || defined(__OpenBSD__) || defined(_WIN32)
+ || defined(__UCLIBC__) || defined(__OpenBSD__) \
+ || defined(_WIN32) || defined(TCC_UCLIBC)
#warning Bound checking does not support malloc (etc.) in this environment.
#undef CONFIG_TCC_MALLOC_HOOKS
#undef HAVE_MEMALIGN
@@ -377,7 +378,7 @@ void __bound_init(void)
size = BOUND_T23_SIZE;
mark_invalid(start, size);
-#if !defined(__TINYC__) && defined(CONFIG_TCC_MALLOC_HOOKS)
+#if defined(CONFIG_TCC_MALLOC_HOOKS)
/* malloc zone is also marked invalid. can only use that with
* hooks because all libs should use the same malloc. The solution
* would be to build a new malloc for tcc.