From owner-svn-ports-head@freebsd.org Sun Mar 28 11:59:03 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A95DC5BE5F2; Sun, 28 Mar 2021 11:59:03 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F7Z4R4Pyfz4X87; Sun, 28 Mar 2021 11:59:03 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8A5971FC8C; Sun, 28 Mar 2021 11:59:03 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 12SBx3NG068072; Sun, 28 Mar 2021 11:59:03 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 12SBx3Bd068071; Sun, 28 Mar 2021 11:59:03 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202103281159.12SBx3Bd068071@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sun, 28 Mar 2021 11:59:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r569385 - head/math/R/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/R/files X-SVN-Commit-Revision: 569385 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2021 11:59:03 -0000 Author: pkubaj Date: Sun Mar 28 11:59:03 2021 New Revision: 569385 URL: https://svnweb.freebsd.org/changeset/ports/569385 Log: math/R: remove obsolete fpsetmask src/unix/sys-unix.c uses fpsetmask to workaround a bug that is not present since FreeBSD 4.0. This issue also affected Firefox and was resolved 9 years ago https://bugzilla.mozilla.org/show_bug.cgi?id=789436#c27 fpsetmask executions cause R build to crash on powerpc64(le), since new SIGFPE kernel code doesn't take into account old workarounds. PR: 254621 Approved by: jrm (maintainer) Added: head/math/R/files/patch-src_unix_sys-unix.c (contents, props changed) Added: head/math/R/files/patch-src_unix_sys-unix.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/R/files/patch-src_unix_sys-unix.c Sun Mar 28 11:59:03 2021 (r569385) @@ -0,0 +1,34 @@ +--- src/unix/sys-unix.c.orig 2021-03-28 00:59:38 UTC ++++ src/unix/sys-unix.c +@@ -909,12 +909,6 @@ void R_ProcessEvents(void) + * helpers for start-up code + */ + +-#ifdef __FreeBSD__ +-# ifdef HAVE_FLOATINGPOINT_H +-# include +-# endif +-#endif +- + /* patch from Ei-ji Nakama for Intel compilers on ix86. + From http://www.nakama.ne.jp/memo/ia32_linux/R-2.1.1.iccftzdaz.patch.txt. + Since updated to include x86_64. +@@ -928,9 +922,6 @@ void R_ProcessEvents(void) + void fpu_setup(Rboolean start) + { + if (start) { +-#ifdef __FreeBSD__ +- fpsetmask(0); +-#endif + + #if (defined(__i386) || defined(__x86_64)) && defined(__INTEL_COMPILER) && __INTEL_COMPILER > 800 + _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_OFF); +@@ -953,8 +944,5 @@ void fpu_setup(Rboolean start) + asm volatile("msr fpcr, %0" : : "r"(fpcr)); + #endif + } else { +-#ifdef __FreeBSD__ +- fpsetmask(~0); +-#endif + } + }