summaryrefslogtreecommitdiff
path: root/rts/include
diff options
context:
space:
mode:
authorNicolas Trangez <ikke@nicolast.be>2022-10-30 20:36:47 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-02 12:06:48 -0400
commit41e1f748171fe3f06f2fb85a5e26541491308d4e (patch)
treebf3cf556c6729dc9c7ef2dbf0e63fdb7af79d431 /rts/include
parent81a5843333c9121b055b13907794a8afe24cd747 (diff)
downloadhaskell-41e1f748171fe3f06f2fb85a5e26541491308d4e.tar.gz
rts: introduce (and use) `STG_MALLOC`
Instead of using `GNUC3_ATTRIBUTE(__malloc__)`, provide a `STG_MALLOC` macro definition and use it instead.
Diffstat (limited to 'rts/include')
-rw-r--r--rts/include/Stg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/include/Stg.h b/rts/include/Stg.h
index 8e36bf6fab..ffecd70240 100644
--- a/rts/include/Stg.h
+++ b/rts/include/Stg.h
@@ -244,6 +244,8 @@
#define STG_NORETURN GNU_ATTRIBUTE(__noreturn__)
+#define STG_MALLOC GNUC3_ATTRIBUTE(__malloc__)
+
/* -----------------------------------------------------------------------------
Global type definitions
-------------------------------------------------------------------------- */