summaryrefslogtreecommitdiff
path: root/includes/rts/prof/LDV.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-08-05 09:35:39 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-08-05 09:35:39 +0000
commit948c01bdb7f42504487a624b229137694871efd0 (patch)
tree162006e4eef0ed26e403fd313a7ff62caf2b97e1 /includes/rts/prof/LDV.h
parenta53ccca7894727fcf6de21b5c7b0ea2f7eaec569 (diff)
downloadhaskell-948c01bdb7f42504487a624b229137694871efd0.tar.gz
profiling build fixes
Diffstat (limited to 'includes/rts/prof/LDV.h')
-rw-r--r--includes/rts/prof/LDV.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/includes/rts/prof/LDV.h b/includes/rts/prof/LDV.h
index c51b10647e..f54724652d 100644
--- a/includes/rts/prof/LDV.h
+++ b/includes/rts/prof/LDV.h
@@ -23,17 +23,22 @@
* because retainer profiling also expects LDVW(c) to be initialised
* to zero.
*/
-#ifndef CMINUSMINUS
-#define LDV_RECORD_CREATE(c) \
- LDVW((c)) = ((StgWord)RTS_DEREF(era) << LDV_SHIFT) | LDV_STATE_CREATE
-#endif
#ifdef CMINUSMINUS
+
#define LDV_RECORD_DEAD_FILL_SLOP_DYNAMIC(c) \
foreign "C" LDV_recordDead_FILL_SLOP_DYNAMIC(c "ptr")
+
#else
+
+#define LDV_RECORD_CREATE(c) \
+ LDVW((c)) = ((StgWord)RTS_DEREF(era) << LDV_SHIFT) | LDV_STATE_CREATE
+
+void LDV_recordDead_FILL_SLOP_DYNAMIC( StgClosure *p );
+
#define LDV_RECORD_DEAD_FILL_SLOP_DYNAMIC(c) \
LDV_recordDead_FILL_SLOP_DYNAMIC(c)
+
#endif
#else /* !PROFILING */