Ticket #6127: 0001-Don-t-use-64-bit-support-functions-on-MIPS-N32.patch

File 0001-Don-t-use-64-bit-support-functions-on-MIPS-N32.patch, 904 bytes (added by mtjm, 3 years ago)

patch fixing the issue

  • rts/Linker.c

    From f6a74d870ea0371b4e2b24e6d70fbc22d338ad44 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Micha=C5=82=20Mas=C5=82owski?= <[email protected]>
    Date: Sun, 27 May 2012 15:35:03 +0200
    Subject: [PATCH] Don't use 64-bit support functions on MIPS N32.
    
    It uses native 64-bit instructions instead of these, despite having
    32-bit pointers.
    ---
     rts/Linker.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/rts/Linker.c b/rts/Linker.c
    index d7ab54e..de9d5ce 100644
    a b typedef struct _RtsSymbolVal { 
    12901290
    12911291
    12921292// 64-bit support functions in libgcc.a
    1293 #if defined(__GNUC__) && SIZEOF_VOID_P <= 4
     1293#if defined(__GNUC__) && SIZEOF_VOID_P <= 4 && !defined(_ABIN32)
    12941294#define RTS_LIBGCC_SYMBOLS                             \
    12951295      SymI_NeedsProto(__divdi3)                        \
    12961296      SymI_NeedsProto(__udivdi3)                       \