Re: [PATCH] RISC-V: Use newlib nano specific libm.

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jan 29 14:46, Jim Wilson wrote:
> The libm gamma functions use the _gamma_signgam field of the reentrant
> structure, which changes offset with the --enable-newlib-reent-small
> configure option, which means we need to use a newlib nano specific
> version of libm in addition to libc in the nano.specs file.  Reported
> by Keith Packard.  There is a riscv-gnu-toolchain patch that goes
> along with this to create the new libm_nano.a file.
> 
> Signed-off-by: Jim Wilson <[email protected]>
> ---
>  libgloss/riscv/nano.specs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libgloss/riscv/nano.specs b/libgloss/riscv/nano.specs
> index 89fd23176..e12e31384 100644
> --- a/libgloss/riscv/nano.specs
> +++ b/libgloss/riscv/nano.specs
> @@ -15,7 +15,7 @@
>  %(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group
>  
>  *link:
> -%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano)
> +%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lm -lm_nano)
>  
>  *lib:
>  %{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}
> -- 
> 2.17.1

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl40EosACgkQ9TYGna5E
T6BOgBAAiLVfOgqqz7w8a7Zsk1VW8PDT3O6oklgBT3UQgoqCz+guvjKJcjrAVd0j
OYvyFmX803Ag7p3BrbnQP63afzskG24A9aVk3VS++X6/d8GNMEVfGO3RQVZ83BJ4
yiL2Rmjveyl8AjfLhspqZyhnxdMPFtnF+5kOw7UxsydhuiploBYcDuKvToh1+YSZ
43My6a4+8WOnKolbid8c7+YdejQGKZU+h0mrOW28HspAuITqy9ofYRWknMVbrGj3
hjKLnDh5ORwCJty09N8gagqKpG5L6GTQ6tMgN5Rmm6NIyi/+Iy8Gr0iVBovZizZy
Zkl8LnYRsQ2gqhq/e7UvYBScb7TyzREAiDOqnmC71YaTasjhr0hb/TgOxBYhL3P0
Occiw0K/ps9asLz2CPdy+/vQZOuOS31TItQqZMXzAuVbuOpKc6g1JfUBEC1rICzG
3MtqD4QDF77XvwpgMtrxVS9zZ/TZ03csHiUzA7643tTq3DF27syXbU9e9VhHGzN5
TPrkb5niEXAIiDkgBhEfY5Pu/SdND3wrsJJv0VNTkVFRM9eLrqiLF43p1gL0Wuoa
eJWjS7YBL0upXPrEoXxrEl9KQcCDber7rnYViHmqrDlC/ydSWJBvIjfYSTZPukiw
M3k62TFsV56cayHLAyT2xib6j7SF5MJkrX/dk/YXKR3Ydg/FPKU=
=btBe
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.