Use -fno-loop-optimize rather than -O0 for gcc4-sh3-bz2 hack.

This commit is contained in:
tsutsui 2008-05-16 13:13:00 +00:00
parent 5d2bff060a
commit 51e440b3e3

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2008/03/18 14:48:39 christos Exp $
# $NetBSD: Makefile,v 1.13 2008/05/16 13:13:00 tsutsui Exp $
USE_FORT?= yes # data driven bugs?
@ -23,7 +23,7 @@ COPTS+= -O0
# XXX blocksort.c gets mis-compiled with 4.1
.if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \
${HAVE_GCC} == 4
COPTS.blocksort.c+= -O0
COPTS.blocksort.c+= -fno-loop-optimize
.endif
.if ${MKSHARE} != "no"