[commit: ghc] master: Fix build on some platforms (a36991b)

git at git.haskell.org git at git.haskell.org
Sun Oct 12 19:55:26 UTC 2014


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

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

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

commit a36991b272e623e24f85437f05019d6e35ab8085
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Sun Oct 12 17:39:23 2014 +0100

    Fix build on some platforms


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

a36991b272e623e24f85437f05019d6e35ab8085
 rts/Linker.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rts/Linker.c b/rts/Linker.c
index 4ea7fd6..a34aeb7 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -2369,7 +2369,9 @@ mkOc( pathchar *path, char *image, int imageSize,
    oc->sections          = NULL;
    oc->proddables        = NULL;
    oc->stable_ptrs       = NULL;
+#if powerpc_HOST_ARCH || x86_64_HOST_ARCH || arm_HOST_ARCH
    oc->symbol_extras     = NULL;
+#endif
 
 #ifndef USE_MMAP
 #ifdef darwin_HOST_OS



More information about the ghc-commits mailing list