0002-FIX-no-FPU-exceptions-bits-on-ARC-glibc.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 1125f1ee33324bc91b4e8dd9da49163af572d04a Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sat, 16 Mar 2019 10:48:25 +0100
  4. Subject: [PATCH] FIX: no FPU exceptions bits on ARC glibc
  5. The FPU exceptions bits are missing in fenv.h in glibc for ARC
  6. architecture.
  7. Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
  8. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  9. [Upstream status: https://github.com/numpy/numpy/pull/13137]
  10. ---
  11. numpy/core/src/npymath/ieee754.c.src | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src
  14. index f3f15f841..3f66b24a4 100644
  15. --- a/numpy/core/src/npymath/ieee754.c.src
  16. +++ b/numpy/core/src/npymath/ieee754.c.src
  17. @@ -682,7 +682,7 @@ void npy_set_floatstatus_invalid(void)
  18. }
  19. #elif defined(_MSC_VER) || (defined(__osf__) && defined(__alpha)) || \
  20. - defined (__UCLIBC__)
  21. + defined (__UCLIBC__) || (defined(__arc__) && defined(__GLIBC__))
  22. /*
  23. * By using a volatile floating point value,
  24. --
  25. 2.14.1