mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
Allow signal handlers when bound checking
Disable generating bound_local_new/bound_local_delete when not needed. Add new testcase 114_bound_signal.
This commit is contained in:
14
lib/bcheck.c
14
lib/bcheck.c
@@ -460,15 +460,9 @@ void FASTCALL __bound_local_new(void *p1)
|
||||
if (print_calls) {
|
||||
p = p1;
|
||||
while ((addr = p[0])) {
|
||||
if (addr == 1) {
|
||||
dprintf(stderr, "%s, %s(): alloca/vla used\n",
|
||||
__FILE__, __FUNCTION__);
|
||||
}
|
||||
else {
|
||||
dprintf(stderr, "%s, %s(): %p 0x%lx\n",
|
||||
__FILE__, __FUNCTION__,
|
||||
(void *) (addr + fp), (unsigned long) p[1]);
|
||||
}
|
||||
dprintf(stderr, "%s, %s(): %p 0x%lx\n",
|
||||
__FILE__, __FUNCTION__,
|
||||
(void *) (addr + fp), (unsigned long) p[1]);
|
||||
p += 2;
|
||||
}
|
||||
}
|
||||
@@ -903,7 +897,7 @@ int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
|
||||
void *(*start_routine) (void *), void *arg)
|
||||
{
|
||||
use_sem = 1;
|
||||
dprintf (stderr, "%s, %s()n", __FILE__, __FUNCTION__);
|
||||
dprintf (stderr, "%s, %s()\n", __FILE__, __FUNCTION__);
|
||||
return pthread_create_redir(thread, attr, start_routine, arg);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user