rts: Add FALLTHROUGH macro
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 2 Nov 2018 18:25:27 +0000 (14:25 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 2 Nov 2018 21:13:03 +0000 (17:13 -0400)
commit6bb8aaa3b4fcebf8f0de2f81f00dcc20b857c4f5
tree09eaa82c607421240ba01ff0b312b804f44bab5e
parent5f81952e230fef1f65ae473e09d44101c489c483
rts: Add FALLTHROUGH macro

Instead of using the GCC `/* fallthrough */` syntax we now use the
`__attribute__((fallthrough))`, which Phyx says should be more portable
than the former.

Also adds a missing fallthrough annotation in the MachO linker,
fixing #14613.

Reviewers: erikd, simonmar

Reviewed By: simonmar

Subscribers: rwbarton, carter

GHC Trac Issues: #14613

Differential Revision: https://phabricator.haskell.org/D5292
includes/Stg.h
rts/RaiseAsync.c
rts/linker/Elf.c
rts/linker/MachO.c
rts/sm/CNF.c
rts/sm/MarkWeak.c
rts/sm/Sanity.c
rts/sm/Scav.c