[Git][ghc/ghc][wip/ghc-9.8] rts: Work around missing prototypes errors
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Mon Jul 10 03:05:10 UTC 2023
Ben Gamari pushed to branch wip/ghc-9.8 at Glasgow Haskell Compiler / GHC
Commits:
0b61479a by Ben Gamari at 2023-07-09T23:04:51-04:00
rts: Work around missing prototypes errors
Darwin's toolchain inexpliciably claims that `write_barrier` and friends
have declarations without prototypes, despite the fact that (a) they are
definitions, and (b) the prototypes appear only a few lines above. Work
around this by making the definitions proper prototypes.
(cherry picked from commit 5b6612bc4f6b0a7ecc9868750bee1c359ffca871)
- - - - -
1 changed file:
- rts/include/stg/SMP.h
Changes:
=====================================
rts/include/stg/SMP.h
=====================================
@@ -589,9 +589,9 @@ load_load_barrier(void) {
EXTERN_INLINE void write_barrier(void);
EXTERN_INLINE void store_load_barrier(void);
EXTERN_INLINE void load_load_barrier(void);
-EXTERN_INLINE void write_barrier () {} /* nothing */
-EXTERN_INLINE void store_load_barrier() {} /* nothing */
-EXTERN_INLINE void load_load_barrier () {} /* nothing */
+EXTERN_INLINE void write_barrier (void) {} /* nothing */
+EXTERN_INLINE void store_load_barrier(void) {} /* nothing */
+EXTERN_INLINE void load_load_barrier (void) {} /* nothing */
// Relaxed atomic operations
#define RELAXED_LOAD(ptr) *ptr
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0b61479aa3861b3b5337ef0eda5c197f5e817abd
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0b61479aa3861b3b5337ef0eda5c197f5e817abd
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230709/739fdc3b/attachment.html>
More information about the ghc-commits
mailing list