x32-use-native-x86_64-insn
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Thu, 28 Feb 2019 14:18:49 +0000 (14:18 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 28 Feb 2019 14:18:49 +0000 (14:18 +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)                       \