From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d368012aff3bdc04 X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: DEC C -tune ev6 optimization bug Date: 1999/06/14 Message-ID: <37654CF1.9C59C9FC@zk3.dec.com>#1/1 X-Deja-AN: 489537771 Content-Transfer-Encoding: 7bit References: <5vWGOC4gy$0aG$1@joerch.org> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Joerg Czeranski wrote: > > It uses wh64 instructions (nice optimization BTW) but miscalculates > the bound as &a[(1L << 32) + n] (with the lowest 6 bits cleared) > instead of &a[n]. > This leads to cache corruption for memory after the array "a". Yes, this is a known problem that wasn't easily reproduced on pre-ev6 hardware. Hence, it has existed for a while, but had gone largely undetected until recently. Your diagnosis above is a very good description of the problem. The good news is that the problem has been fixed and is expected to be in our future compilers. We expect that this will be fixed the patch compilers for V4.0E,F and V5.0. We also expect that this will be fixed in our next Developers' Toolkit compiler (EFT3). For more information, see http://www.unix.digital.com/developerstoolkit/ Thanks, -Jeff -- Jeff Sullivan | Compaq Computer Corp | mailto:jps@zk3.dec.com Compaq C/C++ | Nashua, NH ZK3-2X23 | Jeff.Sullivan@compaq.com