Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 1 | From 589a5442a841b156a1890bc2d26e7a5103e2f672 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 1 Nov 2019 17:53:50 -0700 |
| 4 | Subject: [PATCH] riscv: Enable double operations when using double float abi |
| 5 | |
| 6 | Upstream-Status: Submitted [https://github.com/pocoproject/poco/pull/2825] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
| 9 | Foundation/src/utils.h | 3 ++- |
| 10 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/Foundation/src/utils.h b/Foundation/src/utils.h |
| 13 | index 69cea1aca..ff7a5c9ce 100644 |
| 14 | --- a/Foundation/src/utils.h |
| 15 | +++ b/Foundation/src/utils.h |
| 16 | @@ -63,7 +63,8 @@ |
| 17 | defined(__SH4__) || defined(__alpha__) || \ |
| 18 | defined(_MIPS_ARCH_MIPS32R2) || \ |
| 19 | defined(__AARCH64EL__) || \ |
| 20 | - defined(nios2) || defined(__nios2) || defined(__nios2__) |
| 21 | + defined(nios2) || defined(__nios2) || defined(__nios2__) || \ |
| 22 | + (defined(__riscv) && defined(__riscv_float_abi_double)) |
| 23 | #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 |
| 24 | #elif defined(_M_IX86) || defined(__i386__) || defined(__i386) |
| 25 | #if defined(_WIN32) |
| 26 | -- |
| 27 | 2.23.0 |
| 28 | |