arc: libgcc: Import __udivdi3 & __udivmoddi4 to allow 64-bit division
authorAlexey Brodkin <abrodkin@synopsys.com>
Mon, 2 Sep 2019 09:19:15 +0000 (12:19 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Tue, 3 Sep 2019 16:05:34 +0000 (19:05 +0300)
commitfbf8c5016399da8ee641f08022d322eb08d667a0
treee639b42deb52d789ddcd538fd3405c594812600d
parent9ddaf1d51602a531d463f9047958b9de233123ca
arc: libgcc: Import __udivdi3 & __udivmoddi4 to allow 64-bit division

As reported by Kever here [1] we were unable to compile 64-bit division
code due to missing definition of __udivdi3().

Import its implementation and __udivmoddi4() as its direct dependency
from today's libgcc [2].

[1] https://patchwork.ozlabs.org/patch/1146845/
[2] https://github.com/gcc-mirror/gcc/commit/5d8723600bc0eed41226b5a6785bc02a053b45d5

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Kever Yang <kever.yang@rock-chips.com>
arch/arc/lib/libgcc2.c