summaryrefslogtreecommitdiff
path: root/rts/linker
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/linker
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/linker')
-rw-r--r--rts/linker/M32Alloc.h2
-rw-r--r--rts/linker/elf_reloc_aarch64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/rts/linker/M32Alloc.h b/rts/linker/M32Alloc.h
index 331958614c..c866029a65 100644
--- a/rts/linker/M32Alloc.h
+++ b/rts/linker/M32Alloc.h
@@ -21,7 +21,7 @@
#if defined(NEED_M32)
#define M32_NO_RETURN /* Nothing */
#else
-#define M32_NO_RETURN GNUC3_ATTRIBUTE(__noreturn__)
+#define M32_NO_RETURN STG_NORETURN
#endif
struct m32_allocator_t;
diff --git a/rts/linker/elf_reloc_aarch64.c b/rts/linker/elf_reloc_aarch64.c
index 790378ab0e..8afc52317b 100644
--- a/rts/linker/elf_reloc_aarch64.c
+++ b/rts/linker/elf_reloc_aarch64.c
@@ -22,7 +22,7 @@ bool isAdrp(addr_t p);
bool isLoadStore(addr_t p);
bool isAddSub(addr_t p);
bool isVectorOp(addr_t p);
-int64_t decodeAddendAarch64(Section * section, Elf_Rel * rel) GNU_ATTRIBUTE(__noreturn__);
+int64_t decodeAddendAarch64(Section * section, Elf_Rel * rel) STG_NORETURN;
bool encodeAddendAarch64(Section * section, Elf_Rel * rel, int64_t addend);
bool isBranch(addr_t p) {