x32-use-native-x86_64-insn
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Mon, 25 Jun 2018 09:24:52 +0000 (10:24 +0100)
committerIlias Tsitsimpis <iliastsi@debian.org>
Mon, 25 Jun 2018 09:24:52 +0000 (10:24 +0100)
Gbp-Pq: Name x32-use-native-x86_64-insn.patch

rts/RtsSymbols.c

index 7db5a27cf1e3812939ca08762d61a122db5304ec..e74b18672dba3fa1ea35f1169ece876c2b0ece9c 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)                       \