NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-mips/57680: printf("%.1f") shows wrong resultsonR3000mipseb
The following reply was made to PR port-mips/57680; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: riastradh%NetBSD.org@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-mips/57680: printf("%.1f") shows wrong resultsonR3000mipseb
Date: Tue, 7 Nov 2023 01:49:34 +0900
> Can you try the attached program, with and without libm linked?
>
> rm -f test1 && make test1 && ./test1
> rm -f test1 && make test1 LDLIBS=-lm && ./test1
---
news3470-% rm -f test1 && make test1 && ./test1
cc -O2 -o test1 test1.c
FLT_ROUNDS=1
fegetround()=0
news3470-% rm -f test1 && make test1 LDLIBS=-lm && ./test1
cc -O2 -o test1 test1.c -lm
FLT_ROUNDS=1
fegetround()=0
news3470-%
---
As I wrote an other mail, <mips/fenv.h> always has fegetround()
(and other fe*() functions) as static inline functions:
https://github.com/NetBSD/src/blob/trunk/sys/arch/mips/include/fenv.h
so I'm afraid __weak_reference(fegetround) will never referred on mips.
(I'm not sure how __weak_reference() works in such static inline cases)
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index