[commit: ghc] master: Add OpenBSD specific RTS symbols (2b7d9c2)

git at git.haskell.org git at git.haskell.org
Sat Nov 7 23:54:32 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2b7d9c2b96eb9da3cce7826df4a91c3426095528/ghc

>---------------------------------------------------------------

commit 2b7d9c2b96eb9da3cce7826df4a91c3426095528
Author: Karel Gardas <karel.gardas at centrum.cz>
Date:   Sun Nov 8 00:21:36 2015 +0100

    Add OpenBSD specific RTS symbols
    
    This patch adds OpenBSD specific RTS symbols.  The patch is taken from
    the OpenBSD ports tree, provided by the OpenBSD community.
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1445


>---------------------------------------------------------------

2b7d9c2b96eb9da3cce7826df4a91c3426095528
 rts/RtsSymbols.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
index 0d15140..709c5bf 100644
--- a/rts/RtsSymbols.c
+++ b/rts/RtsSymbols.c
@@ -444,6 +444,13 @@
 #define RTS_DARWIN_ONLY_SYMBOLS
 #endif
 
+#if defined(openbsd_HOST_OS)
+#define RTS_OPENBSD_ONLY_SYMBOLS                            \
+     SymE_NeedsProto(__guard_local)
+#else
+#define RTS_OPENBSD_ONLY_SYMBOLS
+#endif
+
 #ifndef SMP
 # define MAIN_CAP_SYM SymI_HasProto(MainCapability)
 #else
@@ -1076,6 +1083,7 @@ RTS_RET_SYMBOLS
 RTS_POSIX_ONLY_SYMBOLS
 RTS_MINGW_ONLY_SYMBOLS
 RTS_DARWIN_ONLY_SYMBOLS
+RTS_OPENBSD_ONLY_SYMBOLS
 RTS_LIBGCC_SYMBOLS
 RTS_LIBFFI_SYMBOLS
 #undef SymI_NeedsProto
@@ -1113,6 +1121,7 @@ RtsSymbolVal rtsSyms[] = {
       RTS_POSIX_ONLY_SYMBOLS
       RTS_MINGW_ONLY_SYMBOLS
       RTS_DARWIN_ONLY_SYMBOLS
+      RTS_OPENBSD_ONLY_SYMBOLS
       RTS_LIBGCC_SYMBOLS
       RTS_LIBFFI_SYMBOLS
 #if defined(darwin_HOST_OS) && defined(i386_HOST_ARCH)



More information about the ghc-commits mailing list