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 <yanghuatao@xiaomi.com>
This commit is contained in:
yanghuatao 2024-04-24 12:12:55 +08:00 committed by archer
parent 9fdd299d32
commit 2ae4ea3f99

View File

@ -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;