NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-mips/57680: printf("%.1f") shows wrongresultsonR3000mipseb
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: rvp%SDF.ORG@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-mips/57680: printf("%.1f") shows wrongresultsonR3000mipseb
Date: Sun, 5 Nov 2023 15:49:46 +0900
I wrote:
> I'll try to check which function actually requires -O0 later.
> (a bit boring work on the slow machine..)
Building dtoa.c with -O0 works around:
(on build host)
---
% /s/netbsd-9/src/obj.newsmips/tooldir.NetBSD-10.0_BETA-i386/bin/nbmake-newsmips -j4 DBG=-O0 libc.so.12.213
--- dtoa.pico ---
# compile libc/dtoa.pico
/s/netbsd-9/src/obj.newsmips/tooldir.NetBSD-10.0_BETA-i386/bin/mipseb--netbsd-gcc \
-O0 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional \
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual \
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare \
-Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length \
-Werror -fPIE --sysroot=/s/netbsd-9/src/obj.newsmips/destdir.newsmips \
-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNLS -DYP \
-I/s/netbsd-9/src/lib/libc/include -I/s/netbsd-9/src/lib/libc -I. \
-I/s/netbsd-9/src/sys -I/s/netbsd-9/src/lib/libc/compat/../locale \
-I/s/netbsd-9/src/lib/libc/compat/stdlib -I/s/netbsd-9/src/lib/libc/compat/../stdlib \
-D__BUILD_LEGACY -D__HAVE_ASM_ATOMIC_CAS_UP -I/s/netbsd-9/src/lib/libc/../../common/lib/libc/quad \
-I/s/netbsd-9/src/lib/libc/../../common/lib/libc/string \
-I/s/netbsd-9/src/lib/libc/../../common/lib/libc/arch/mips/string \
-D__DBINTERFACE_PRIVATE -I/s/netbsd-9/src/libexec/ld.elf_so \
-I/s/netbsd-9/src/lib/libc/dlfcn -I/s/netbsd-9/src/lib/libc/gdtoa \
-I/s/netbsd-9/src/lib/libc/locale -DHonor_FLT_ROUNDS \
-I/s/netbsd-9/src/lib/libc/arch/mips/gdtoa -DWITH_RUNE \
-I/s/netbsd-9/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL \
-DPORTMAP -DWIDE_DOUBLE -DUSG_COMPAT -c -D_I18N_DYNAMIC -fPIC \
/s/netbsd-9/src/lib/libc/gdtoa/dtoa.c -o dtoa.pico
/s/netbsd-9/src/obj.newsmips/tooldir.NetBSD-10.0_BETA-i386/bin/mipseb--netbsd-objcopy -x dtoa.pico
:
---
(on NWS-3470 target)
---
news3470-% env LD_LIBRARY_PATH=libc-O2-and-dtoa-O0 ldd ./test
./test:
-lc.12 => libc-O2-and-dtoa-O0/libc.so.12
news3470-% env LD_LIBRARY_PATH=libc-O2-and-dtoa-O0 ./test
314.2
314
1570.8
1570
news3470-%
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index