From owner-freebsd-arm@FreeBSD.ORG Mon Apr 12 00:42:26 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 691A9106564A; Mon, 12 Apr 2010 00:42:26 +0000 (UTC) (envelope-from maksverver@geocities.com) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id DCFF98FC17; Mon, 12 Apr 2010 00:42:25 +0000 (UTC) Received: from heaven.student.utwente.nl (heaven.student.utwente.nl [130.89.167.52]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o3C0g9Y7008747; Mon, 12 Apr 2010 02:42:09 +0200 Message-ID: <4BC26C5E.7000509@geocities.com> Date: Mon, 12 Apr 2010 02:42:06 +0200 From: Maks Verver User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100322 Thunderbird/3.0.3 MIME-Version: 1.0 To: Alexander Motin References: <4BB1C5C9.8000402@FreeBSD.org> <20100330.090525.956847443318914833.imp@bsdimp.com> <4BB21B2A.6090209@FreeBSD.org> In-Reply-To: <4BB21B2A.6090209@FreeBSD.org> Content-Type: multipart/mixed; boundary="------------050601000805050903080207" X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: maksverver@geocities.com X-Spam-Status: No Cc: freebsd-arm@FreeBSD.org Subject: Re: printf(long double) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 00:42:26 -0000 This is a multi-part message in MIME format. --------------050601000805050903080207 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Alexander, On 03/30/10 17:39, Alexander Motin wrote: > #include int main (void) { printf("%Lf %f\n", (long > double)14.5, (double)14.5); return(0); } > > It compiles cleanly on both arm and amd64, but still not working on > arm: %./a.out 6.500000 14.500000 I investigated this in detail and it seems to be caused by a bug in the __ldtoa function that fails to account for the implicit mantissa bit of the double value (6 = 14 - 8) because the ARM port doesn't define LDBL_IMPLICIT_NBIT. Attached is a patch to lib/libc/arm/_fpmath.h that corrects this problem and also corrects the value for LDBL_MANH_SIZE. Warner, do you know if there is a subtle reason why arm/_fpmath.h contains the definitions it does now, or are these errors that should be fixed in the trunk? Kind regards, Maks Verver. --------------050601000805050903080207 Content-Type: text/plain; name="arm-longdouble.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="arm-longdouble.patch" --- lib/libc/arm/_fpmath.h.orig 2010-04-11 23:23:37.000000000 +0200 +++ lib/libc/arm/_fpmath.h 2010-04-11 23:25:48.000000000 +0200 @@ -56,8 +56,9 @@ #define LDBL_NBIT 0 #define mask_nbit_l(u) ((void)0) +#define LDBL_IMPLICIT_NBIT -#define LDBL_MANH_SIZE 32 +#define LDBL_MANH_SIZE 20 #define LDBL_MANL_SIZE 32 #define LDBL_TO_ARRAY32(u, a) do { \ --------------050601000805050903080207-- From owner-freebsd-arm@FreeBSD.ORG Mon Apr 12 11:06:56 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B744106566C for ; Mon, 12 Apr 2010 11:06:56 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0F7DC8FC1A for ; Mon, 12 Apr 2010 11:06:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3CB6t26042353 for ; Mon, 12 Apr 2010 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3CB6tnY042351 for freebsd-arm@FreeBSD.org; Mon, 12 Apr 2010 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Apr 2010 11:06:55 GMT Message-Id: <201004121106.o3CB6tnY042351@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 11:06:56 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 o arm/134338 arm [patch] Lock GPIO accesses on ixp425 2 problems total. From owner-freebsd-arm@FreeBSD.ORG Thu Apr 15 17:04:20 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C1DE1065740; Thu, 15 Apr 2010 17:04:20 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id A99D68FC0C; Thu, 15 Apr 2010 17:04:19 +0000 (UTC) Received: by ewy24 with SMTP id 24so576579ewy.33 for ; Thu, 15 Apr 2010 10:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=syMLDIza2vMbgDjFQC3FUOA9K/21O2qrsj6GCD2bQBA=; b=iWCXijL5OsATgIyHuEEu/2IVjiL092/gidMby0n+P57PdEh15oBNUzRW3NdCir3T5G ZULQix+hHXmn7jqZC8BR1E1GFSS+Hp0XYLZmVXwWoURmXUSnhbW8n3uAXPCvj2gqbFOB JRu+3Xp+tU37NfAKWQQ4/R62qqHRAzafxFMRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=jUmOEaSn+4ryy2HIP8aBFqCv/RmkqY2Xh+SBkg41DZ/1wHGNfUehxZ6HEkljPTzIXz Yryd56yTJDYiU/t6WG6fw8UnjWmVVxbRp8l2xZ1KotXeUnT23r3QA1dqfxNxM+76ZLBf 9sFv+V3BywEZU74kIFonv0zDJoBI/z5ydRw6s= Received: by 10.102.15.22 with SMTP id 22mr288408muo.7.1271351058393; Thu, 15 Apr 2010 10:04:18 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id y2sm9166932mug.21.2010.04.15.10.04.17 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Apr 2010 10:04:17 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BC74709.4000201@FreeBSD.org> Date: Thu, 15 Apr 2010 20:04:09 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: freebsd-net , freebsd-sparc64@FreeBSD.org, freebsd-arm@FreeBSD.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Subject: net/mpd5 now works on other archs X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2010 17:04:20 -0000 Hi. I've just merged to 8-STABLE set of Netgraph fixes, required to run net/mpd5 on architectures with strict memory access alignment. I have successfully tested it on arm and sparc64 systems, and I hope it should work on others. Let me know if you find any more issues there. -- Alexander Motin From owner-freebsd-arm@FreeBSD.ORG Sat Apr 17 23:20:02 2010 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 372F61065678 for ; Sat, 17 Apr 2010 23:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 152478FC22 for ; Sat, 17 Apr 2010 23:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3HNK1sg017273 for ; Sat, 17 Apr 2010 23:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3HNK1kE017268; Sat, 17 Apr 2010 23:20:01 GMT (envelope-from gnats) Resent-Date: Sat, 17 Apr 2010 23:20:01 GMT Resent-Message-Id: <201004172320.o3HNK1kE017268@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, qwxzprnp Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F59E106566C for ; Sat, 17 Apr 2010 23:12:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 05F8E8FC16 for ; Sat, 17 Apr 2010 23:12:57 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3HNCucS086824 for ; Sat, 17 Apr 2010 23:12:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3HNCuKp086823; Sat, 17 Apr 2010 23:12:56 GMT (envelope-from nobody) Message-Id: <201004172312.o3HNCuKp086823@www.freebsd.org> Date: Sat, 17 Apr 2010 23:12:56 GMT From: qwxzprnp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/145792: qwxzprnp X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2010 23:20:02 -0000 >Number: 145792 >Category: arm >Synopsis: qwxzprnp >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Apr 17 23:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: qwxzprnp >Release: qwxzprnp >Organization: qwxzprnp >Environment: qwxzprnp >Description: [URL=http://xewsiyyr.com]fsvnatty[/URL] tkweyhmw jablvvhf http://mhjoflak.com lgcrwtej bmlqgttz >How-To-Repeat: qwxzprnp >Fix: qwxzprnp >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Sat Apr 17 23:20:02 2010 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 850C1106567C for ; Sat, 17 Apr 2010 23:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 62D1D8FC25 for ; Sat, 17 Apr 2010 23:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3HNK2nZ017282 for ; Sat, 17 Apr 2010 23:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3HNK2QC017281; Sat, 17 Apr 2010 23:20:02 GMT (envelope-from gnats) Resent-Date: Sat, 17 Apr 2010 23:20:02 GMT Resent-Message-Id: <201004172320.o3HNK2QC017281@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, shfskueb Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86AD6106566B for ; Sat, 17 Apr 2010 23:13:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5DECB8FC23 for ; Sat, 17 Apr 2010 23:13:43 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3HNDhjN086885 for ; Sat, 17 Apr 2010 23:13:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3HNDhdD086884; Sat, 17 Apr 2010 23:13:43 GMT (envelope-from nobody) Message-Id: <201004172313.o3HNDhdD086884@www.freebsd.org> Date: Sat, 17 Apr 2010 23:13:43 GMT From: shfskueb To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/145793: shfskueb X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2010 23:20:02 -0000 >Number: 145793 >Category: arm >Synopsis: shfskueb >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Apr 17 23:20:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: shfskueb >Release: shfskueb >Organization: shfskueb >Environment: shfskueb >Description: [URL=http://ozzytsgv.com]yvzsobfu[/URL] pkekufib http://iujcvyba.com hqlqejlw acfuogrh jkbfevru >How-To-Repeat: shfskueb >Fix: shfskueb >Release-Note: >Audit-Trail: >Unformatted: