Restore buildworld from clang (adjust libm)
authorJohn Marino <draco@marino.st>
Sat, 14 Nov 2015 17:12:05 +0000 (18:12 +0100)
committerJohn Marino <draco@marino.st>
Sat, 14 Nov 2015 20:03:46 +0000 (21:03 +0100)
commit6b6b4dd0d75b9cd8fd4deebd4046aae2f1fafb10
tree39e771b4377c98dcffee2f3a4cac73670864e64a
parent28a63366e9fc1e637dd7661e20a5c0ec86fe422f
Restore buildworld from clang (adjust libm)

Functions like "isinff" come from GCC only, causes a missed reference when
the world is built with clang.  To solve, bring back FreeBSD versions of
round(|f|l).  An additional benefit is that these functions appear to be
improved over the OpenBSD versions (avoids unnecessary conversions).  The
FreeBSD roundl uses ENTERI/RETURNI macros so I left these off meaning DF
will still not able to raise exceptions on roundl.

Since isinff and friends are no longer used, clang can continue further with
building the world.
contrib/openbsd_libm/src/s_round.c
contrib/openbsd_libm/src/s_roundf.c
contrib/openbsd_libm/src/s_roundl.c