Subject: Re: Optimizer bug in NetBSD/SPARC64 1.5?
To: None <port-sparc@NetBSD.ORG>
From: Charles M. Hannum <root@ihack.net>
List: port-sparc
Date: 02/15/2001 11:03:05
On Thu, Feb 15, 2001 at 01:32:48AM -0800, Greg Earle wrote:
>
> I found a problem with NMH 1.04 on my Ultra 5+. The "scan" program was
> calling every message in all my folders "?4128":
...
> cc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 scansbr.c
...
> ?4128 10/07 "MiNa hi<<helloooooooo -------------------------------
>
> This only happens if "CFLAGS" is "-O2".
This sort of thing is *usually* a coding error, and *not* an optimizer
bug. Things like uninitialized variables and returning a pointer to an
automatic variable, for example, may appear to work if the compiler
isn't as aggressive.