x32-use-native-x86_64-insn
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Mon, 14 Nov 2016 16:35:40 +0000 (16:35 +0000)
committerClint Adams <clint@debian.org>
Mon, 14 Nov 2016 16:35:40 +0000 (16:35 +0000)
Gbp-Pq: Name x32-use-native-x86_64-insn.patch

rts/RtsSymbols.c

index 3e82cdffa150df2cb5f32658c9036f5a46acce4d..f6e30e8bbdb3291a9d24bca936473565547928fa 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)                       \