x32-use-native-x86_64-insn
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Tue, 6 Feb 2018 21:01:18 +0000 (21:01 +0000)
committerSean Whitton <spwhitton@spwhitton.name>
Tue, 6 Feb 2018 21:01:18 +0000 (21:01 +0000)
Gbp-Pq: Name x32-use-native-x86_64-insn.patch

rts/RtsSymbols.c

index fec5cfc0564fbe78889e2096c3b2c62fd417539c..05c87879e57f2a6904ba953633ade50ed92b70e2 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)                       \