Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2021 21:27:34 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e2157cd0000f - main - Partially revert ac76bc1145dd because it is no longer necessary
Message-ID:  <202111052127.1A5LRYAt070854@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=e2157cd0000f6dbb6465d7a885f2dcfd4d3596cb

commit e2157cd0000f6dbb6465d7a885f2dcfd4d3596cb
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-11-05 21:26:16 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-11-05 21:27:20 +0000

    Partially revert ac76bc1145dd because it is no longer necessary
    
    In ac76bc1145dd, I added a few volatiles to work around ctrig_test
    failures with {inf,inf}. This is not necessary anymore now, since in
    3b00222f156d we added -fp-exception-behavior=maytrap for clang >= 10 in
    libm's Makefile. (The flag tells clang to use stricter floating point
    semantics, which libm depends on.)
    
    PR:             244732, 254911
    Fixes:          ac76bc1145dd
    MFC after:      3 days
---
 lib/msun/src/s_ccoshf.c | 2 +-
 lib/msun/src/s_ctanh.c  | 2 +-
 lib/msun/src/s_ctanhf.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/msun/src/s_ccoshf.c b/lib/msun/src/s_ccoshf.c
index e72395c277d5..5d7a09ba5f8d 100644
--- a/lib/msun/src/s_ccoshf.c
+++ b/lib/msun/src/s_ccoshf.c
@@ -43,7 +43,7 @@ static const float huge = 0x1p127;
 float complex
 ccoshf(float complex z)
 {
-	volatile float x, y, h;
+	float x, y, h;
 	int32_t hx, hy, ix, iy;
 
 	x = crealf(z);
diff --git a/lib/msun/src/s_ctanh.c b/lib/msun/src/s_ctanh.c
index 93e5ad444501..e5840a1bf67b 100644
--- a/lib/msun/src/s_ctanh.c
+++ b/lib/msun/src/s_ctanh.c
@@ -76,7 +76,7 @@ __FBSDID("$FreeBSD$");
 double complex
 ctanh(double complex z)
 {
-	volatile double x, y;
+	double x, y;
 	double t, beta, s, rho, denom;
 	uint32_t hx, ix, lx;
 
diff --git a/lib/msun/src/s_ctanhf.c b/lib/msun/src/s_ctanhf.c
index 164a2c23df9e..c46f86d2e116 100644
--- a/lib/msun/src/s_ctanhf.c
+++ b/lib/msun/src/s_ctanhf.c
@@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
 float complex
 ctanhf(float complex z)
 {
-	volatile float x, y;
+	float x, y;
 	float t, beta, s, rho, denom;
 	uint32_t hx, ix;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111052127.1A5LRYAt070854>