summaryrefslogtreecommitdiff
path: root/rts/Hpc.c
diff options
context:
space:
mode:
authorNicolas Trangez <ikke@nicolast.be>2022-10-30 20:29:52 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-02 12:06:48 -0400
commit6b400d264647207d3217fd5af45a4b20c4d402d4 (patch)
tree9d246dce3b70e66e941f50a9ebf848a4e80a3b7e /rts/Hpc.c
parent4521f6498d09f48a775a028efdd763c874da3451 (diff)
downloadhaskell-6b400d264647207d3217fd5af45a4b20c4d402d4.tar.gz
rts: introduce (and use) `STG_NORETURN`
Instead of sprinkling the codebase with `GNU(C3)_ATTRIBUTE(__noreturn__)`, add a `STG_NORETURN` macro (for, basically, the same thing) similar to `STG_UNUSED` and others, and update the code to use this macro where applicable.
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r--rts/Hpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Hpc.c b/rts/Hpc.c
index edbad500c0..13f2ab87a2 100644
--- a/rts/Hpc.c
+++ b/rts/Hpc.c
@@ -45,7 +45,7 @@ HpcModuleInfo *modules = 0;
static char *tixFilename = NULL;
-static void GNU_ATTRIBUTE(__noreturn__)
+static void STG_NORETURN
failure(char *msg) {
debugTrace(DEBUG_hpc,"hpc failure: %s\n",msg);
fprintf(stderr,"Hpc failure: %s\n",msg);