Viral B. Shah
02e0bbc7c5
Revert "Add -fno-builtin to the tests as well."
...
This reverts commit f7a18b519d
.
2016-03-02 23:34:32 +05:30
Viral B. Shah
f7a18b519d
Add -fno-builtin to the tests as well.
2016-02-28 00:05:21 +05:30
Viral B. Shah
4a1b310f91
Add -fno-builtin for gcc too.
2016-02-28 00:02:49 +05:30
Viral B. Shah
1bba495716
Merge pull request #124 from NuxiNL/cloudabi-fixes
...
Upstream local modifications to openlibm.
2016-02-27 10:29:48 -08:00
Ed Schouten
62c7361aab
Suppress a compiler warning generated by Clang.
...
Clang doesn't like it if you bitshift negative numbers, as the behaviour
of it is undefined. Solve this by first shifting, followed by negating.
This was fixed similarly in FreeBSD.
2016-02-27 19:23:08 +01:00
Ed Schouten
78c0afb2a7
Rename _scan_nan() to __scan_nan().
...
The current tradition of openlibm is to hide all of its internal symbols
into the reserved system namespace. CloudABI has a check in place to
ensure that its C library (which contains openlibm) to not place any
unwanted symbols into the public namespace. openlibm seems to leak
_scan_nan() in there, so we'd better add an additional underscore.
2016-02-27 17:26:15 +01:00
Viral B. Shah
4ef4170e64
Change some #ifdefs to be different than the system ones.
2016-02-27 19:52:44 +05:30
Viral B. Shah
31335a9de6
Merge pull request #123 from JuliaLang/tk/dllexport
...
Revert "Fix #35 "
2016-02-27 03:16:53 -08:00
Tony Kelman
c3b18b1096
Revert "Fix #35 "
...
This reverts commit 8b3b520675
.
This was causing dllexport-related errors on win64
2016-02-27 02:32:03 -08:00
Viral B. Shah
0001d589a4
Acknowledge IBM sponsorship of powerpc port.
2016-02-27 12:54:11 +05:30
Viral B. Shah
780d8f63e3
Merge pull request #122 from JuliaLang/vs/i686
...
Fix fpgetprec and fpsetprec.
2016-02-26 21:59:02 -08:00
Viral B. Shah
2a0d3868ad
Fix fpgetprec and fpsetprec.
2016-02-27 04:59:42 +00:00
Viral B. Shah
c7b7f6c764
Merge pull request #119 from JuliaLang/vs/i686
...
Use i386 ieeefp.h from msun
2016-02-26 20:41:46 -08:00
Viral B. Shah
9d7a76cca8
Merge pull request #121 from JuliaLang/sb/ppcarch
...
fix ARCH variable for powerpc, and rearrange fenv.h union for endianness
2016-02-26 18:46:17 -08:00
Simon Byrne
b87b1631cb
ARCH ppc => powerpc
2016-02-26 16:46:17 +00:00
Simon Byrne
10bae6608d
fix ARCH variable for powerpc, and rearrange fenv.h union for endianness
2016-02-26 16:35:26 +00:00
Viral B. Shah
2729465a89
Use i386 ieeefp.h
2016-02-24 17:26:32 +05:30
Viral B. Shah
5840cef4ad
Install all the headers in includdir/openlibm
2016-02-24 10:34:57 +05:30
Viral B. Shah
05f9de6c05
Revert "moved src/cdefs-compat.h -> include/cdefs-compat.h"
...
This reverts commit 07a535e55d
.
2016-02-24 10:33:19 +05:30
Viral B. Shah
28e2b87335
Install cdefs-compat.h as well in usr/include/openlibm
2016-02-24 10:10:35 +05:30
Viral B. Shah
07a535e55d
moved src/cdefs-compat.h -> include/cdefs-compat.h
2016-02-24 10:06:55 +05:30
Viral B. Shah
7654216ccf
Merge pull request #110 from iblis17/master
...
FreeBSD has different pkg-config dir: /usr/local/libdata/
2016-02-23 11:21:12 -08:00
Viral B. Shah
369d3f6b6d
Add ppc support.
2016-02-23 23:45:33 +05:30
Viral B. Shah
076a1cfb82
Merge pull request #116 from JuliaLang/sb/opt
...
work around optimisation bugs for rint
2016-02-23 10:11:34 -08:00
Simon Byrne
dcc0d8da74
work around optimisation bugs for rint
2016-02-23 15:40:46 +00:00
Simon Byrne
39bfc468bc
Merge pull request #115 from JuliaLang/sb/arm
...
Set optimisation on ARM to -O0, which stops tests from hanging.
2016-02-23 14:16:38 +00:00
Simon Byrne
ac6fb73cba
Set optimisation on ARM to -O0, which stops tests from hanging.
2016-02-23 13:58:20 +00:00
Simon Byrne
1aa6a0fc7c
Merge pull request #114 from JuliaLang/sb/power
...
Support powerpc
2016-02-23 13:37:21 +00:00
Simon Byrne
830dc991f3
Support powerpc
...
This fixes #113 , based on files from FreeBSD. Tested on machine hosted by [OSUOSL](http://osuosl.org/services/powerdev/ ).
2016-02-23 11:08:14 +00:00
Iblis Lin
37559aa18c
FreeBSD has different pkg-config dir: /usr/local/libdata/
2016-01-19 23:08:57 +08:00
Viral B. Shah
5cd80c4b1c
Merge pull request #106 from petercolberg/master
...
Set default optimization flag to -O2
2015-11-28 21:07:54 +05:30
Peter Colberg
b9658f49e6
Fail if library symlinks cannot be created
...
libopenlibm.$(SHLIB_EXT).$(SOMAJOR) is required for running tests.
2015-11-13 13:45:37 -05:00
Peter Colberg
0aef1f7009
Clean up and test make clean
2015-11-13 13:43:44 -05:00
Peter Colberg
ebed203c04
Remove superfluous compiler flags for tests
...
-O2 is the default, and -g should be set in CFLAGS if needed.
2015-11-13 13:19:51 -05:00
Peter Colberg
f4daa7e8bb
Set default optimization flag to -O2
...
Allow overriding optimization flag with the environment variable CFLAGS.
2015-11-13 13:14:55 -05:00
Viral B. Shah
e102501e24
Merge pull request #105 from petercolberg/master
...
[WIP] More makefile improvements
2015-11-13 09:21:59 +05:30
Viral B. Shah
4c8740ad58
Import these fixes from upstream.
...
0563b7a42b/lib/msun/src/e_j0f.c
Fix test build on OS X.
2015-11-13 09:16:51 +05:30
Peter Colberg
3095eef623
Add make variable NOOPT to disable optimization flags
...
This is used by Debian to build an unoptimized variant for debugging.
2015-11-12 22:37:28 -05:00
Viral B. Shah
c29e8b1b6e
Revert "Remove [jy][01n]f(). X/Open only standardizes the double versions."
...
This reverts commit 8c8693cf79
.
2015-11-13 09:06:24 +05:30
Viral B. Shah
2af199e669
Merge pull request #104 from petercolberg/master
...
Test shared library
2015-11-13 09:00:07 +05:30
Peter Colberg
bab41fc510
Test shared library
...
Add make check target that builds and runs the tests.
2015-11-12 14:56:08 -05:00
Viral B. Shah
a8c2f3a1bb
Merge pull request #102 from ginggs/kfreebsd-hurd
...
Build on GNU/kfreeBSD and GNU/Hurd
2015-11-12 11:20:11 +05:30
Graham Inggs
e3336dd022
Enable stack protection for all ELFs, not only __linux__
2015-11-10 21:39:17 +02:00
Graham Inggs
ebe1db3ce4
Build on GNU/kfreeBSD and GNU/Hurd
...
Use __GLIBC__ instead of __linux
Simplify Make.inc as per JuliaLang/openspecfun@e91925a
2015-11-10 21:38:51 +02:00
Viral B. Shah
58e1dd9a28
Merge pull request #103 from ginggs/inline-fpgetprec-i386
...
Add missing include to inline __fpgetprec on i386
2015-10-28 19:44:30 +05:30
Graham Inggs
d37c9c3970
Add missing include to inline __fpgetprec on i386
...
This fixes the unresolved symbol __fpgetprec in libopenlibm.so.1.0 on i386
2015-10-28 09:02:50 +02:00
Viral B. Shah
91f517b9f5
Merge pull request #100 from NuxiNL/aarch64
...
Make OpenLibm build on AArch64 (aka ARM64).
2015-10-26 15:31:17 +05:30
Ed Schouten
845b329cb9
Remove __always_inline, just like we do for ld80.
...
__always_inline is a (Free)BSD specific definition from cdefs.h.
Compilers like Clang don't care about these keywords anyway, as they
simply do whatever they like.
It looks like we already removed this keyword from ld80/e_rem_pio2l.h as
well. Apply exactly the same change to the ld128 version as well.
2015-10-26 10:28:11 +01:00
Ed Schouten
ec5833a498
Add a copy of FreeBSD's lib/libc/aarch64/_fpmath.h.
...
This makes it possible to build OpenLibm on ARM64 CPUs.
2015-10-26 10:26:19 +01:00
Ed Schouten
bc8dd927a3
Use isfinite() instead of non-standard finite() function.
...
The finite() function got standardized under the name isfinite(). Its
use is therefore discouraged.
2015-10-26 10:23:11 +01:00