svn commit: r284807 - in head/lib/libc/aarch64: . gen

Ed Schouten ed at nuxi.nl
Thu Jun 25 16:13:42 UTC 2015


[ +das@ ]

2015-06-25 18:03 GMT+02:00 Ed Schouten <ed at nuxi.nl>:
> Considering that this interface is essentially deprecated (they were
> replaced by C99 <fenv.h>), would it make sense to figure out what
> actually uses this? If it's just Python and a small number of other
> ports, maybe it would be worth porting these over?

Even more interesting, if I look at the Python code (Modules/python.c,
in main()):

    /* 754 requires that FP exceptions run in "no stop" mode by default,
     * and until C vendors implement C99's ways to control FP exceptions,
     * Python requires non-stop mode.  Alas, some platforms enable FP
     * exceptions by default.  Here we disable them.
     */

This contradicts with what fenv(3) says:

"Non-stop mode is the default, but it may be altered by
feenableexcept() and fedisableexcept()."

This line has already been in there since its first version (2004). My
suspicion is that the code that Python has, is only there to deal with
older versions of FreeBSD from 2004 that may have been non-conforming.

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK/VAT number: 62051717


More information about the svn-src-head mailing list