This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2ae4ea3f99a3ac4c31caf89f4c3862cc80c8e829 Author: yanghuatao <yanghua...@xiaomi.com> AuthorDate: Wed Apr 24 12:12:55 2024 +0800 toolchain/ghs: Fix green hills toolchain build Vela link error [elxr] (error #412) unresolved symbols: __builtin_signbit from libc.a(lib_dtoa_engine.o) Signed-off-by: yanghuatao <yanghua...@xiaomi.com> --- libs/libc/stdio/lib_dtoa_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/stdio/lib_dtoa_engine.c b/libs/libc/stdio/lib_dtoa_engine.c index 51e9b3902c..4bc8884f91 100644 --- a/libs/libc/stdio/lib_dtoa_engine.c +++ b/libs/libc/stdio/lib_dtoa_engine.c @@ -69,7 +69,7 @@ int __dtoa_engine(double x, FAR struct dtoa_s *dtoa, int max_digits, uint8_t flags = 0; int i; - if (__builtin_signbit(x)) + if (x < 0) { flags |= DTOA_MINUS; x = -x;