Remove "-frename-registers" option for sparc64 kernel builds. That

was not present in what I originally tested when checking to see if
the kernel built/ran with the -O2 change.  Recent instability in
sparc64 kernel was tracked to this.  A reproducible kernel stack
traceback followed by hard hang during the call to msleep() at the
point the kernel waits 15 seconds for the SCSI bus to settle crept in
to recent kernel builds and it seems to go away with this patch.

Noticed by:	kris
Approved by:	rwatson (mentor)
This commit is contained in:
kensmith 2004-03-29 01:15:39 +00:00
parent 36a78467c4
commit 64d9ca5533

View File

@ -19,10 +19,12 @@ SIZE?= size
.if ${CC} == "icc"
COPTFLAGS?=-O
.else
. if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "sparc64"
. if ${MACHINE_ARCH} == "amd64"
COPTFLAGS?=-O2 -frename-registers -pipe
. elif ${MACHINE_ARCH} == "ia64"
COPTFLAGS?=-O2 -pipe
. elif ${MACHINE_ARCH} == "sparc64"
COPTFLAGS?=-O2 -pipe
. else
COPTFLAGS?=-O -pipe
. endif