Skip to content

Commit 007010e

Browse files
author
Austin Seipp
committed
---
yaml --- r: 6583 b: refs/heads/master c: b513a5a h: refs/heads/master i: 6581: 163d6f9 6579: c68e02c 6575: 6286558 v: v3
1 parent 0563bf5 commit 007010e

File tree

9 files changed

+9
-15
lines changed

9 files changed

+9
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8d8148f1f740ce80a07a19830cfae8a1851a7c4f
2+
refs/heads/master: b513a5a5001b850a153db12d9621d00a70ff929a

trunk/mk/platform.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ CFG_GCCISH_LINK_FLAGS :=
1717
# embedded into the executable, so use a no-op command.
1818
CFG_DSYMUTIL := true
1919

20-
ifneq ($(CFG_VALGRIND),)
21-
CFG_GCCISH_CFLAGS += -DHAVE_VALGRIND
20+
ifeq ($(CFG_VALGRIND),)
21+
CFG_GCCISH_CFLAGS += -DNVALGRIND
2222
endif
2323

2424
ifneq ($(findstring freebsd,$(CFG_OSTYPE)),)

trunk/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ else
125125
endif
126126

127127
RUNTIME_DEF_$(1) := rt/rustrt$$(CFG_DEF_SUFFIX)
128-
RUNTIME_INCS_$(1) := -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
128+
RUNTIME_INCS_$(1) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
129129
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
130130
-I $$(S)src/libuv/include
131131
RUNTIME_OBJS_$(1) := $$(RUNTIME_CS_$(1):rt/%.cpp=rt/$(1)/%.o) \

trunk/src/rt/arch/i386/context.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <inttypes.h>
88
#include <stdint.h>
99

10-
#include "../../memcheck.h"
10+
#include "vg/memcheck.h"
1111

1212
template<typename T>
1313
T align_down(T sp)
@@ -51,9 +51,7 @@ class context {
5151
uint32_t bot = regs.esp;
5252
uint32_t top = align_down(bot - nbytes);
5353

54-
#ifdef HAVE_VALGRIND
5554
(void)VALGRIND_MAKE_MEM_UNDEFINED(top - 4, bot - top + 4);
56-
#endif
5755

5856
return reinterpret_cast<void *>(top);
5957
}

trunk/src/rt/arch/x86_64/context.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
#include <stdint.h>
99
#include <xmmintrin.h>
1010

11-
#ifdef HAVE_VALGRIND
12-
#include <valgrind/memcheck.h>
13-
#endif
11+
#include "vg/memcheck.h"
1412

1513
template<typename T>
1614
T align_down(T sp)
@@ -51,9 +49,7 @@ class context {
5149
uint64_t bot = regs.data[RUSTRT_RSP];
5250
uint64_t top = align_down(bot - nbytes);
5351

54-
#ifdef HAVE_VALGRIND
5552
(void)VALGRIND_MAKE_MEM_UNDEFINED(top - 4, bot - top + 4);
56-
#endif
5753

5854
return reinterpret_cast<void *>(top);
5955
}

trunk/src/rt/rust_task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include "rust_internal.h"
33
#include "rust_cc.h"
44

5-
#include "valgrind.h"
6-
#include "memcheck.h"
5+
#include "vg/valgrind.h"
6+
#include "vg/memcheck.h"
77

88
#ifndef __WIN32__
99
#include <execinfo.h>

trunk/src/rt/rust_timer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "rust_internal.h"
2-
#include "valgrind.h"
2+
#include "vg/valgrind.h"
33

44
// The mechanism in this file is very crude; every domain (thread) spawns its
55
// own secondary timer thread, and that timer thread *never idles*. It
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)