From owner-freebsd-stable@FreeBSD.ORG Fri Nov 2 22:04:49 2007 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE77116A417 for ; Fri, 2 Nov 2007 22:04:49 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8FCAE13C4A6 for ; Fri, 2 Nov 2007 22:04:49 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from smaug.rattatosk ([10.50.50.2]) by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1Io4dE-0009mT-CF for stable@freebsd.org; Fri, 02 Nov 2007 22:04:48 +0000 Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by smaug.rattatosk with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1Io4dE-0004XR-AH for stable@freebsd.org; Fri, 02 Nov 2007 22:04:48 +0000 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Io4dE-0001eQ-8X for stable@freebsd.org; Fri, 02 Nov 2007 22:04:48 +0000 To: stable@freebsd.org Message-Id: From: Pete French Date: Fri, 02 Nov 2007 22:04:48 +0000 Cc: Subject: Float problen running i386 inary on amd64 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 22:04:49 -0000 Hi, I have a very simple program: int main(int argc, char *argv[]) { if(atof("3.2") == atof("3.200")) puts("They are equal"); else puts("They are NOT equal!"); return 0; } This works as expected on both i386 and amd64. But if I take the compiled binary from the i386 system and run it on the amd64 system thenit says they are not equal! I thought this was a library problem, but it even happens if I compile to a static binary, which would preseumably mean the same code is running on both systems. I am using 6.3-PRERELEASE here -pete.