From owner-freebsd-current Thu Oct 31 13:47:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13E3D37B401 for ; Thu, 31 Oct 2002 13:47:58 -0800 (PST) Received: from motgate2.mot.com (motgate2.mot.com [136.182.1.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40EA043E42 for ; Thu, 31 Oct 2002 13:47:57 -0800 (PST) (envelope-from rittle@latour.rsch.comm.mot.com) Received: [from pobox3.mot.com (pobox3.mot.com [10.64.251.242]) by motgate2.mot.com (motgate2 2.1) with ESMTP id OAA00470; Thu, 31 Oct 2002 14:47:57 -0700 (MST)] Received: [from latour.rsch.comm.mot.com (latour.rsch.comm.mot.com [145.1.80.116]) by pobox3.mot.com (MOT-pobox3 2.0) with ESMTP id OAA06412; Thu, 31 Oct 2002 14:44:09 -0700 (MST)] Received: from latour.rsch.comm.mot.com (localhost.rsch.comm.mot.com [127.0.0.1]) by latour.rsch.comm.mot.com (8.12.6/8.12.6) with ESMTP id g9VLlnGC070955; Thu, 31 Oct 2002 15:47:49 -0600 (CST) (envelope-from rittle@latour.rsch.comm.mot.com) Received: (from rittle@localhost) by latour.rsch.comm.mot.com (8.12.6/8.12.6/Submit) id g9VLlHLJ070952; Thu, 31 Oct 2002 15:47:17 -0600 (CST) Date: Thu, 31 Oct 2002 15:47:17 -0600 (CST) From: Loren James Rittle Message-Id: <200210312147.g9VLlHLJ070952@latour.rsch.comm.mot.com> To: bde@zeta.org.au Cc: imp@bsdimp.com, current@FreeBSD.ORG, dschultz@uclink.Berkeley.EDU In-reply-to: <20021031202343.W8632-100000@gamplex.bde.org> (message from Bruce Evans on Thu, 31 Oct 2002 20:28:33 +1100 (EST)) Subject: Re: Lack of real long double support Reply-To: rittle@labs.mot.com References: <20021031202343.W8632-100000@gamplex.bde.org> User-Agent: SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.5 (i386-unknown-freebsdelf3.2) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20021031202343.W8632-100000@gamplex.bde.org>, Bruce Evans writes: > Example of how fixing this breaks a similar assertion for DBL_ESPILON: > %%% > $ cat z.c [...] > $ cc -o z z.c > $ ./z > LDBL_EPSILON failed test 1 with prec 2 > $ cc -O -o z z.c. > $ ./z > LDBL_EPSILON failed test 1 with prec 2 > DBL_EPSILON failed test 2 with prec 3 > %%% > The full brokenness only shows up with -O. When I run your program against gcc mainline (for 3.3 release) with the patch I have staged from RTH to correctly match our FP hardware default setup, I see: S rittle@latour; /usr/local/beta-gcc/bin/gcc t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 S rittle@latour; /usr/local/beta-gcc/bin/gcc -O t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 DBL_EPSILON failed test 2 with prec 3 S rittle@latour; /usr/local/beta-gcc/bin/gcc -O2 t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 DBL_EPSILON failed test 2 with prec 3 S rittle@latour; /usr/local/beta-gcc/bin/gcc -O3 t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 DBL_EPSILON failed test 2 with prec 3 I.e. the only time it "fails" is when the user made a call to change the default precision. Is that gcc 3.3 behavior acceptable (at least until gcc can be further refined to attempt to handle user override of the FP control word)? Regards, Loren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message