x32-use-native-x86_64-insn
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Sat, 21 Sep 2019 10:06:31 +0000 (11:06 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 21 Sep 2019 10:06:31 +0000 (11:06 +0100)
Gbp-Pq: Name x32-use-native-x86_64-insn.patch

rts/RtsSymbols.c

index 87fa98dd4f4d510d5c5c69f653c4641ac1e87c85..784ff08d6c03f95e6f42a944f9e8047920de7d5f 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)                       \