mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-17 05:20:08 +08:00
Fix include/tccdefs.h
Remove __amd64__ for FreeBD (32 bits version did not work any more) Add __APPLE__ at HAVE MALLOC_REDIR so bound checking works on apple
This commit is contained in:
parent
0352c41a07
commit
f7d2d04d96
@ -72,7 +72,6 @@
|
|||||||
#define __GNUC_PATCHLEVEL__ 0
|
#define __GNUC_PATCHLEVEL__ 0
|
||||||
#define __GNUC_STDC_INLINE__ 1
|
#define __GNUC_STDC_INLINE__ 1
|
||||||
#define __NO_TLS 1
|
#define __NO_TLS 1
|
||||||
#define __amd64__ 1
|
|
||||||
# if __SIZEOF_POINTER__ == 8
|
# if __SIZEOF_POINTER__ == 8
|
||||||
/* FIXME, __int128_t is used by setjump */
|
/* FIXME, __int128_t is used by setjump */
|
||||||
#define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); }
|
#define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); }
|
||||||
@ -232,7 +231,7 @@
|
|||||||
__BOUND(void*,__aeabi_memset,(void*,int,__SIZE_TYPE__))
|
__BOUND(void*,__aeabi_memset,(void*,int,__SIZE_TYPE__))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __linux__ // HAVE MALLOC_REDIR
|
#if defined __linux__ || defined __APPLE__ // HAVE MALLOC_REDIR
|
||||||
#define __MAYBE_REDIR __BUILTIN
|
#define __MAYBE_REDIR __BUILTIN
|
||||||
#else
|
#else
|
||||||
#define __MAYBE_REDIR __BOTH
|
#define __MAYBE_REDIR __BOTH
|
||||||
|
Loading…
Reference in New Issue
Block a user