summaryrefslogtreecommitdiff
path: root/rts/RtsStartup.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/RtsStartup.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/RtsStartup.c')
-rw-r--r--rts/RtsStartup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c
index a80dfc2959..5b0cc9f712 100644
--- a/rts/RtsStartup.c
+++ b/rts/RtsStartup.c
@@ -660,7 +660,7 @@ shutdownHaskellAndExit(int n, int fastExit)
}
#if !defined(mingw32_HOST_OS)
-static void exitBySignal(int sig) GNUC3_ATTRIBUTE(__noreturn__);
+static void exitBySignal(int sig) STG_NORETURN;
void
shutdownHaskellAndSignal(int sig, int fastExit)