diff options
author | Andreas Jaeger <aj@suse.de> | 2012-05-02 16:33:18 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-05-02 16:33:18 +0200 |
commit | 0be196addae0e464aa32fcccc9d679c2f83f01b4 (patch) | |
tree | 56ae14719c484d7e3f38ec81eb4eb85ef695bc87 /math | |
parent | 4f9d04aa8fcc5008995409d524086121e9a840dc (diff) | |
download | glibc-0be196addae0e464aa32fcccc9d679c2f83f01b4.tar.gz glibc-0be196addae0e464aa32fcccc9d679c2f83f01b4.tar.xz glibc-0be196addae0e464aa32fcccc9d679c2f83f01b4.zip |
Use -frounding-math for math testsuite
We should tell GCC that we manipulate the rounding mode and therefore add -frounding-math to these files that call fesetround.
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/math/Makefile b/math/Makefile index abeba7a931..60e3899014 100644 --- a/math/Makefile +++ b/math/Makefile @@ -122,19 +122,21 @@ $(objpfx)test-ldouble.o: $(objpfx)libm-test.stmp $(objpfx)test-ildoubl.o: $(objpfx)libm-test.stmp endif -CFLAGS-test-float.c = -fno-inline -ffloat-store -fno-builtin -CFLAGS-test-double.c = -fno-inline -ffloat-store -fno-builtin -CFLAGS-test-ldouble.c = -fno-inline -ffloat-store -fno-builtin +CFLAGS-test-float.c = -fno-inline -ffloat-store -fno-builtin -frounding-math +CFLAGS-test-double.c = -fno-inline -ffloat-store -fno-builtin -frounding-math +CFLAGS-test-ldouble.c = -fno-inline -ffloat-store -fno-builtin -frounding-math CFLAGS-test-tgmath.c = -fno-builtin CFLAGS-test-tgmath2.c = -fno-builtin CFLAGS-test-tgmath-ret.c = -fno-builtin CFLAGS-test-powl.c = -fno-builtin +CFLAGS-test-test-fenv.c = -frounding-math +CFLAGS-test-misc.c = -frounding-math CPPFLAGS-test-ifloat.c = -U__LIBC_INTERNAL_MATH_INLINES -D__FAST_MATH__ \ - -DTEST_FAST_MATH -fno-builtin + -DTEST_FAST_MATH -fno-builtin -frounding-math CPPFLAGS-test-idouble.c = -U__LIBC_INTERNAL_MATH_INLINES -D__FAST_MATH__ \ - -DTEST_FAST_MATH -fno-builtin + -DTEST_FAST_MATH -fno-builtin -frounding-math CPPFLAGS-test-ildoubl.c = -U__LIBC_INTERNAL_MATH_INLINES -D__FAST_MATH__ \ - -DTEST_FAST_MATH -fno-builtin + -DTEST_FAST_MATH -fno-builtin -frounding-math # The -lieee module sets the _LIB_VERSION_ switch to IEEE mode |