From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 914DF3850368; Thu, 12 Oct 2023 14:47:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 914DF3850368 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1697122020; bh=qZYcLgdy62aD/M0/kZ14I7805MQOMoaXkK+JEZDHumQ=; h=From:To:Subject:Date:From; b=q4CXJNM+eoWBqPb4ATtqE5FfPE7etyYesL4+VUtZ4kJ4MCNlPmga4r+7dy+Z4qysn 1gTzZ9WXj/fXtCvhNbMBLYNCyc+LBG29pqYdTpiGgroOYcpwZU7DpOZle5cJUsC4X5 4pm7+9Qh6tXmqGuCfri7XjL4FWiNUbiWRpZIW9bo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] riscv: Fix fenv.h support X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: dcb2b7d7b8456827d4cd82b5798526e7cd483e36 X-Git-Newrev: 696c282cf32b478b4e11bd8af23663aa99156cb3 Message-Id: <20231012144700.914DF3850368@sourceware.org> Date: Thu, 12 Oct 2023 14:47:00 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D696c282cf32= b478b4e11bd8af23663aa99156cb3 commit 696c282cf32b478b4e11bd8af23663aa99156cb3 Author: Sebastian Huber Date: Thu Oct 12 11:59:32 2023 +0200 riscv: Fix fenv.h support =20 Use the same C preprocessor expressions to define FE_RMODE_MASK and __RISCV_HARD_FLOAT. =20 The problem was noticed on GCC 10 which does not define __riscv_f. Diff: --- newlib/libc/machine/riscv/sys/fenv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/machine/riscv/sys/fenv.h b/newlib/libc/machine/ris= cv/sys/fenv.h index 1d577d527..98387d220 100644 --- a/newlib/libc/machine/riscv/sys/fenv.h +++ b/newlib/libc/machine/riscv/sys/fenv.h @@ -14,7 +14,7 @@ =20 #include =20 -#if defined(__riscv_f) || defined(__riscv_zfinx) +#if defined(__riscv_flen) || defined(__riscv_zfinx) =20 /* Per "The RISC-V Instruction Set Manual: Volume I: User-Level ISA: * Version 2.1", Section 8.2, "Floating-Point Control and Status