From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24823 invoked from network); 12 Jul 1999 18:30:02 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 12 Jul 1999 18:30:02 -0000 Received: from buster.bfr.co.il (root@morannon.bfr.co.il [192.116.142.129]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA20112 for ; Mon, 12 Jul 1999 14:24:10 -0400 Received: from vermis.bfr.co.il (vermis.bfr.co.il [128.253.154.43]) by buster.bfr.co.il (8.8.5/8.8.5) with ESMTP id VAA16266 for ; Mon, 12 Jul 1999 21:17:38 +0300 Received: (from abel@localhost) by vermis.bfr.co.il (8.9.3/8.8.5) id TAA28975; Mon, 12 Jul 1999 19:38:57 +0300 Sender: abel@bfr.co.il To: axp-list@redhat.com Subject: Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) References: <378A21C6.1E094CB4@paralleldata.com> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: abel@bfr.co.il (Alexander L. Belikoff) Date: 12 Jul 1999 19:38:57 +0300 In-Reply-To: "Wes Bauske"'s message of "Mon, 12 Jul 1999 12:11:34 -0500" Message-ID: X-Mailer: Gnus v5.6.45/XEmacs 20.4 - "Emerald" "Wes Bauske" writes: > Try modifying your code to pass the address of a double rather > than the double itself and see if you still can create the > problem. I've seen problems passing floats/doubles to functions > rather than their addresses. I just pass the address instead. As you may have noticed, I didn't talk about workaround - there are many of them. The one, I'm using now is that I have a temporary volatile double v2 in put_f8() and I copy v into v2 and use the latter. Other possible workarounds include, compiling put_f8() with optimization turned off (it is not time-critical), or using manual 'for' loop, rather than memcpy(). -- Alexander L. Belikoff Bloomberg L.P. / BFM Financial Research Ltd. abel@vallinor4.com, abel@bfr.co.il