Subject: lint issues with larger caches
To: None <port-macppc@netbsd.org>
From: John Klos <john@ziaspace.com>
List: tech-toolchain
Date: 09/21/2005 17:14:58
Hello,

A while ago, I reported problems using NetBSD 2's build.sh on a 7457 G4 
which has 512k of CPU speed L2 cache. The problem was that the source tree 
built lint kept randying on signal 11. For other reasons, I switched back 
to the 7455 (256k of L2), and still saw the same problem, but with much 
less frequency.

My previous email regarding this:
http://mail-index.netbsd.org/tech-toolchain/2005/01/09/0000.html

Now that I have a local system where I am testing a 7447a CPU (which also 
has 512k of CPU speed L2), I played with this a little, and it seems that 
the problem goes away completely when lint is compiled with -O0.

Would anyone object to me committing the following change to 
src/usr.bin/xlint?

> # PowerPC processors with large and fast L2 caches (such as the
> # 7447 and 7457) have problems with lint unless compiled with -O0.
> .if ${MACHINE_ARCH} == "powerpc"
> CPPFLAGS+=    -O0
> .endif

Thanks,
John Klos