From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50786 invoked by alias); 31 Jan 2020 11:43:12 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 50744 invoked by uid 9078); 31 Jan 2020 11:43:11 -0000 Date: Fri, 31 Jan 2020 11:43:00 -0000 Message-ID: <20200131114311.50742.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RISC-V: Use newlib nano specific libm. X-Act-Checkin: newlib-cygwin X-Git-Author: Jim Wilson X-Git-Refname: refs/heads/master X-Git-Oldrev: 1cc07f3a3ea162d5f39ffeea54a74147754d3649 X-Git-Newrev: 8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce X-SW-Source: 2020-q1/txt/msg00013.txt https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce commit 8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce Author: Jim Wilson Date: Wed Jan 29 14:46:17 2020 -0800 RISC-V: Use newlib nano specific libm. 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 Diff: --- 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 89fd231..e12e313 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}}