Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jeff Sullivan <jps@zk3.dec.com>
Subject: Re: DEC C -tune ev6  optimization bug
Date: 1999/06/14	[thread overview]
Message-ID: <37654CF1.9C59C9FC@zk3.dec.com> (raw)
In-Reply-To: 5vWGOC4gy$0aG$1@joerch.org

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



      reply	other threads:[~1999-06-14  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-14  4:00 DEC C -tune ev6 optimization bug Joerg Czeranski
1999-06-14  4:00 ` Jeff Sullivan [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox