mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
test-fpucw-ieee: Don't use _FPU_IEEE if not defined
Not all architectures define this value, and if they don't, just let the test run the same as test-fpucw, with __fpu_control set to _FPU_DEFAULT explicitly.
This commit is contained in:
@ -16,9 +16,12 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#define FPU_CONTROL _FPU_IEEE
|
||||
#ifdef _FPU_IEEE
|
||||
/* Some architectures don't have _FPU_IEEE. */
|
||||
# define FPU_CONTROL _FPU_IEEE
|
||||
#endif
|
||||
|
||||
#include "test-fpucw.c"
|
||||
|
||||
/* Preempt the library's definition of `__fpu_control'. */
|
||||
fpu_control_t __fpu_control = _FPU_IEEE;
|
||||
fpu_control_t __fpu_control = FPU_CONTROL;
|
||||
|
Reference in New Issue
Block a user