x32-use-native-x86_64-insn
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Fri, 30 Nov 2018 10:11:18 +0000 (10:11 +0000)
committerIlias Tsitsimpis <iliastsi@debian.org>
Fri, 30 Nov 2018 10:11:18 +0000 (10:11 +0000)
Gbp-Pq: Name x32-use-native-x86_64-insn.patch

rts/RtsSymbols.c

index 2ea6713eee3eb10ad3d95ef9bfe0ad2b4b0bdec5..557766ea909c7723e59c7d052ccd5e43ffca33e3 100644 (file)
 
 
 // 64-bit support functions in libgcc.a
-#if defined(__GNUC__) && SIZEOF_VOID_P <= 4 && !defined(_ABIN32)
+#if defined(__GNUC__) && SIZEOF_VOID_P <= 4 && !defined(_ABIN32) && !(defined(__x86_64__) && defined(__ILP32__))
 #define RTS_LIBGCC_SYMBOLS                             \
       SymI_NeedsProto(__divdi3)                        \
       SymI_NeedsProto(__udivdi3)                       \