Date: Wed, 19 Dec 2007 11:36:51 +0900 From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/102424: [libc] printf(3) prints ill result. Message-ID: <476883C3.4090406@scphys.kyoto-u.ac.jp> In-Reply-To: <20071217075522.GA8703@VARK.MIT.EDU> References: <20071217075522.GA8703@VARK.MIT.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
David Schultz wrote: > 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. Thank you for your reply. But I do not know how to execute you wrote... Would you tell me ? --- Tsurutani Naoki turutani@scphys.kyoto-u.ac.jp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?476883C3.4090406>