Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2018 03:55:16 +0000 (UTC)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r463862 - head/math/octave/files
Message-ID:  <201803080355.w283tGfd054737@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stephen
Date: Thu Mar  8 03:55:16 2018
New Revision: 463862
URL: https://svnweb.freebsd.org/changeset/ports/463862

Log:
  - Fix build on armv6.
  
  PR:		ports/223277
  Submitted by:	mikael.urankar@gmail.com

Added:
  head/math/octave/files/patch-libinterp_corefcn_sysdep.cc   (contents, props changed)

Added: head/math/octave/files/patch-libinterp_corefcn_sysdep.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/octave/files/patch-libinterp_corefcn_sysdep.cc	Thu Mar  8 03:55:16 2018	(r463862)
@@ -0,0 +1,31 @@
+--- libinterp/corefcn/sysdep.cc.orig	2018-03-08 03:49:02 UTC
++++ libinterp/corefcn/sysdep.cc
+@@ -61,6 +61,10 @@ along with Octave; see the file COPYING.
+ #  include <omp.h>
+ #endif
+ 
++#if defined (__FreeBSD__) && defined(__arm__)
++#include <fenv.h>
++#endif
++
+ #include "cmd-edit.h"
+ #include "file-ops.h"
+ #include "lo-mappers.h"
+@@ -97,6 +101,7 @@ along with Octave; see the file COPYING.
+ static void
+ BSD_init (void)
+ {
++#if (defined (__FreeBSD__) && !defined(__arm__))
+ #  if defined (HAVE_FLOATINGPOINT_H)
+   // Disable trapping on common exceptions.
+ #    if ! defined (FP_X_DNML)
+@@ -104,6 +109,9 @@ BSD_init (void)
+ #    endif
+   fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP));
+ #  endif
++#else // FreeBSD && arm
++  fedisableexcept(FE_ALL_EXCEPT);
++#endif // FreeBSD && arm
+ }
+ #endif
+ 



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