From 7a477d70cabe15fa66fd0f32fab5e95841a500e5 Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 6 Feb 2013 19:01:07 +0100 Subject: 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) --- lib/bcheck.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/bcheck.c') 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. -- cgit v1.3.1