diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-11-18 13:27:09 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-11-18 18:19:02 -0500 |
commit | e186536b6fa8ceb004dfa1ba45766edcc871a95b (patch) | |
tree | 0a80818f0122b1671315cabf2c54024436eeff8c /math/test-fpucw-ieee.c | |
parent | 5c3499508eca3929635ddce90749bfc8ca7d0763 (diff) | |
download | glibc-e186536b6fa8ceb004dfa1ba45766edcc871a95b.tar.gz glibc-e186536b6fa8ceb004dfa1ba45766edcc871a95b.tar.xz glibc-e186536b6fa8ceb004dfa1ba45766edcc871a95b.zip |
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.
Diffstat (limited to 'math/test-fpucw-ieee.c')
-rw-r--r-- | math/test-fpucw-ieee.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/math/test-fpucw-ieee.c b/math/test-fpucw-ieee.c index ae5fc73f6e..7596486252 100644 --- a/math/test-fpucw-ieee.c +++ b/math/test-fpucw-ieee.c @@ -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; |