This fixes a testsuite failure for tile (and possibly microblaze).
+2014-04-11 Chris Metcalf <cmetcalf@tilera.com>
+
+ * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
+ Make the test a no-op if there are no exceptions defined.
+
2014-04-11 Paul Pluzhnikov <ppluzhnikov@google.com>
* elf/Makefile (tests): make tst-dlopen-atout conditional on
static int
do_test (void)
{
+#if FE_ALL_EXCEPT
fenv_t env;
if (feenableexcept (FE_INVALID) != 0)
printf ("fegetexcept returned %d, expected %d\n", ret, FE_INVALID);
return 1;
}
+#else
+ puts ("No exceptions defined, cannot test");
+ return 0;
+#endif
}
#define TEST_FUNCTION do_test ()