Date: Mon, 17 Dec 2007 02:55:22 -0500 From: David Schultz <das@FreeBSD.ORG> To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/102424: [libc] printf(3) prints ill result. Message-ID: <20071217075522.GA8703@VARK.MIT.EDU>
next in thread | raw e-mail | index | archive | help
Thanks for investigating this. It's interesting that the problem only happens with -fgcse, and then only on amd64 machines in 32-bit mode. Does this happen in a more recent version of FreeBSD? I don't have an amd64 machine available for testing, and the vendor's dtoa code is a little hard to read, especially if we're looking for a compiler bug here. Some ideas: - See whether contrib/gdtoa/dmisc.c or contrib/gdtoa/dtoa.c is the problem. (That is, compile only one of those with -O2 and see what happens.) - Compile libc with -g in your CFLAGS, then run the program with a breakpoint on the 'quorem' function. See what value it returns. It should never return more than 9.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071217075522.GA8703>