Wrap test-fpucw.c for ARM.

This commit is contained in:
Joseph Myers 2013-06-18 00:30:44 +00:00
parent e55a9b256d
commit c411604296
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-06-18 Joseph Myers <joseph@codesourcery.com>
* sysdeps/arm/fpu_control.h [!_LIBC && __SOFTFP__]: Change
condition to [!(_LIBC && !_LIBC_TEST) && __SOFTFP__].
* sysdeps/arm/test-fpucw.c: New file.
2013-06-17 Joseph Myers <joseph@codesourcery.com>
[BZ #14907]

View File

@ -19,7 +19,7 @@
#ifndef _FPU_CONTROL_H
#define _FPU_CONTROL_H
#if !defined(_LIBC) && defined(__SOFTFP__)
#if !(defined(_LIBC) && !defined(_LIBC_TEST)) && defined(__SOFTFP__)
#define _FPU_RESERVED 0xffffffff
#define _FPU_DEFAULT 0x00000000

View File

@ -0,0 +1,5 @@
/* Defining _LIBC_TEST stops fpu_control.h from defining the
hard-float versions of macros (for use with dynamic VFP detection)
when compiling for soft-float. */
#define _LIBC_TEST
#include <math/test-fpucw.c>