diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-08-14 07:23:35 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-08-14 07:23:36 +1000 |
commit | bd0c31063551744d00796219174739216c398da5 (patch) | |
tree | 0c3fef6d7477079361b226ae9446636588ef8bd5 /rts/RtsSymbols.c | |
parent | ac0e11252af149f085e2262200b7a1638b4a1553 (diff) | |
download | haskell-bd0c31063551744d00796219174739216c398da5.tar.gz |
Fix GHCi perf-llvm build on x86_64
With BuildFlavour set to `perf-llvm`, GHCi would fail as soon as it
was run with:
ghc-stage2: .../ghc-prim/dist-install/build/HSghc-prim-0.5.0.0.o:
unknown symbol `__udivti3'
ghc-stage2: unable to load package `ghc-prim-0.5.0.0'
Fix this by adding `__udivti3` and `__umodti3` to RtsSymbols.c.
Test Plan: Validate
Reviewers: simonmar, austin, bgamari, Phyx, trofi
Reviewed By: Phyx, trofi
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2449
GHC Trac Issues: #11981
Diffstat (limited to 'rts/RtsSymbols.c')
-rw-r--r-- | rts/RtsSymbols.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c index ed9bdfb808..cc26ecbddf 100644 --- a/rts/RtsSymbols.c +++ b/rts/RtsSymbols.c @@ -762,6 +762,10 @@ SymI_NeedsProto(__ashrdi3) \ SymI_NeedsProto(__lshrdi3) \ SymI_NeedsProto(__fixunsdfdi) +#elif defined(__GNUC__) && SIZEOF_VOID_P == 8 +#define RTS_LIBGCC_SYMBOLS \ + SymI_NeedsProto(__udivti3) \ + SymI_NeedsProto(__umodti3) #else #define RTS_LIBGCC_SYMBOLS #endif |