Subject: Optimizer bug in NetBSD/SPARC64 1.5?
To: None <port-sparc@NetBSD.ORG>
From: Greg Earle <earle@isolar.DynDNS.ORG>
List: port-sparc
Date: 02/15/2001 01:32:48
Does this sort of thing happen very often?
I found a problem with NMH 1.04 on my Ultra 5+. The "scan" program was
calling every message in all my folders "?4128":
netbsd4me# pwd
/usr/pkgsrc/mail/nmh/work/nmh-1.0.4/uip
netbsd4me# rm scansbr.o
netbsd4me# make scan
cc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 scansbr.c
cc -s -o scan scan.o scansbr.o termsbr.o ../config/version.o ../config/config.o ../sbr/libmh.a ../mts/sendmail/libsend.a ../zotnet/libzot.a -ltermcap
netbsd4me# su earle -c "./scan +MiNa"
?4128 10/07 "MiNa hi<<helloooooooo -------------------------------
This only happens if "CFLAGS" is "-O2".
netbsd4me# rm scansbr.o
netbsd4me# make CFLAGS=-g scan
cc -c -DHAVE_CONFIG_H -I.. -I. -I.. -g scansbr.c
cc -s -o scan scan.o scansbr.o termsbr.o ../config/version.o ../config/config.o ../sbr/libmh.a ../mts/sendmail/libsend.a ../zotnet/libzot.a -ltermcap
netbsd4me# su earle -c "./scan +MiNa"
1 10/07 "MiNa hi<<helloooooooo -------------------------------
It works correctly if "CFLAGS" is empty, "-g" or "-O". But doesn't work if
it's "-O2". Optimizer buglet?
- Greg