summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/Makefile3
-rw-r--r--math/libm-test.c10
2 files changed, 11 insertions, 2 deletions
diff --git a/math/Makefile b/math/Makefile
index 12967ffac5..0bf27c8065 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -73,6 +73,9 @@ tests = test-float test-double $(test-longdouble-$(long-double-fcts))
# XXX This test is disabled for now since the functions are too buggy.
#test-longdouble-yes = test-longdouble
+CFLAGS-test-float.c = -fno-inline
+CFLAGS-test-double.c = -fno-inline
+CFLAGS-test-longdouble.c = -fno-inline
LDLIBS-test-float = libm
LDLIBS-test-double = libm
LDLIBS-test-longdouble = libm
diff --git a/math/libm-test.c b/math/libm-test.c
index a555d0b423..1271177236 100644
--- a/math/libm-test.c
+++ b/math/libm-test.c
@@ -2947,7 +2947,7 @@ basic_tests (void)
static void
initialize (void)
{
- fpstack_test ("*init*");
+ fpstack_test ("start *init*");
plus_zero = 0.0;
nan_value = plus_zero / plus_zero; /* Suppress GCC warning */
@@ -2955,8 +2955,14 @@ initialize (void)
plus_infty = CHOOSE (HUGE_VALL, HUGE_VAL, HUGE_VALF);
minus_infty = -CHOOSE (HUGE_VALL, HUGE_VAL, HUGE_VALF);
+ (void) &plus_zero;
+ (void) &nan_value;
+ (void) &minus_zero;
+ (void) &plus_infty;
+ (void) &minus_infty;
+
/* Test to make sure we start correctly. */
- fpstack_test ("*init*");
+ fpstack_test ("end *init*");
}