Remove incorrect uses of NVALGRIND, Close #1435.
This commit is contained in:
parent
44bd8da7fd
commit
a9e7bff731
@ -17,10 +17,6 @@ CFG_GCCISH_LINK_FLAGS :=
|
||||
# embedded into the executable, so use a no-op command.
|
||||
CFG_DSYMUTIL := true
|
||||
|
||||
ifeq ($(CFG_VALGRIND),)
|
||||
CFG_GCCISH_CFLAGS += -DNVALGRIND
|
||||
endif
|
||||
|
||||
ifneq ($(findstring freebsd,$(CFG_OSTYPE)),)
|
||||
CFG_LIB_NAME=lib$(1).so
|
||||
CFG_LIB_GLOB=lib$(1)-*.so
|
||||
|
@ -18,7 +18,6 @@ register_valgrind_stack(stk_seg *stk) {
|
||||
|
||||
void
|
||||
reuse_valgrind_stack(stk_seg *stk, uint8_t *sp) {
|
||||
#ifndef NVALGRIND
|
||||
// Establish that the stack is accessible. This must be done when reusing
|
||||
// old stack segments, since the act of popping the stack previously
|
||||
// caused valgrind to consider the whole thing inaccessible.
|
||||
@ -26,7 +25,6 @@ reuse_valgrind_stack(stk_seg *stk, uint8_t *sp) {
|
||||
&& "Stack pointer must be inside stack segment");
|
||||
size_t sz = stk->end - (uintptr_t)sp;
|
||||
VALGRIND_MAKE_MEM_UNDEFINED(sp, sz);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user