From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3985 invoked from network); 12 Jul 1999 22:30:12 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 12 Jul 1999 22:30:12 -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 SAA01390 for ; Mon, 12 Jul 1999 18:24:14 -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 XAA17494 for ; Mon, 12 Jul 1999 23:54:26 +0300 Received: (from abel@localhost) by vermis.bfr.co.il (8.9.3/8.8.5) id WAA29363; Mon, 12 Jul 1999 22:15:46 +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> <378A384F.3439D26A@voicenet.com> <378A4530.814245F6@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 22:15:45 +0300 In-Reply-To: "Wes Bauske"'s message of "Mon, 12 Jul 1999 14:42:40 -0500" Message-ID: X-Mailer: Gnus v5.6.45/XEmacs 20.4 - "Emerald" "Wes Bauske" writes: > Uncle George wrote: > > > > I thought he was! > > If he was passing the value, then he would have a problem, as the float is passed in the second floating > > point argument register ( rather than the second integer argument register ). > > > > I wasn't clear. It's the 'v' in the put_f8() args that I meant. > The actual call to memcpy() is OK. I've seen this occur on other > platforms with high optimization levels, not particularly on Alphas. > That's why I prefer to modify my code since it isn't an Alpha > specific problem. For some reason, pass by value is more dangerous > for floats/doubles than ints/longs when you optimize. Pass by reference > hasn't failed for me yet. What do you mean by 'more dangerous'? Is it only WRT to egcs 1.1.2's optimizer or something more generic? -- Alexander L. Belikoff Bloomberg L.P. / BFM Financial Research Ltd. abel@vallinor4.com, abel@bfr.co.il