<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/lib/utils/libquad, branch v1.3.1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/lib/utils/libquad?h=v1.3.1</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/lib/utils/libquad?h=v1.3.1'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2021-07-11T15:31:44Z</updated>
<entry>
<title>lib: utils: Drop dependency on libgcc by importing part of FreeBSD's libquad</title>
<updated>2021-07-11T15:31:44Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@jrtc27.com</email>
</author>
<published>2021-07-11T02:28:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=17729d44daf879e015950b0e9636afceefea0a59'/>
<id>urn:sha1:17729d44daf879e015950b0e9636afceefea0a59</id>
<content type='text'>
We only need libgcc for 64-bit division on RV32. Whilst GCC toolchains
bundle libgcc, Clang toolchains tend not to ship libclang_rt.builtins
given every compiler is a cross-compiler for every target and so you
would need a silly number of builds of it, with only the native library
available; only vendor-provided Clang toolchains specifically for bare
metal cross-compiling are likely to provide it.

Thus, import part of FreeBSD's implementation of the division support
functions needed and stop linking against libgcc.

Signed-off-by: Jessica Clarke &lt;jrtc27@jrtc27.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Tested-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
</feed>
