Make some minor fixups to bug reporting, etc.

This commit is contained in:
Justine Tunney 2022-07-11 05:55:17 -07:00
parent 84764ce7b8
commit 3f015b1e51
31 changed files with 244 additions and 134 deletions

View file

@ -78,9 +78,8 @@ extern char ape_stack_align[] __attribute__((__weak__));
* and (2) the mmap() address picker will choose aligned addresses when
* the provided size is a two power.
*/
#define GetStackAddr(ADDEND) \
((void *)((((intptr_t)__builtin_frame_address(0) - 1) & -GetStackSize()) + \
(ADDEND)))
#define GetStackAddr() \
(((intptr_t)__builtin_frame_address(0) - 1) & -GetStackSize())
/**
* Returns preferred bottom address of stack.
@ -102,7 +101,7 @@ extern char ape_stack_align[] __attribute__((__weak__));
} else { \
vAddr = 0x100000000 - GetStackSize(); \
} \
(void *)vAddr; \
vAddr; \
})
COSMOPOLITAN_C_END_