There is only one more file which requires HACKS for m68000,

so handle it in each Makefile rather than sys.mk.

These ICEs might be related with GCC Bugzilla Bug 32424
which is not resolved yet even in the upstream.
This commit is contained in:
tsutsui 2008-05-04 15:37:19 +00:00
parent 9fbdf1594f
commit 34dd728d42
3 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.34 2008/02/09 02:37:22 mrg Exp $
# $NetBSD: Makefile,v 1.35 2008/05/04 15:37:19 tsutsui Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
.include <bsd.own.mk>
@ -26,6 +26,10 @@ DPADD+=${LIBUTIL}
COPTS.ffs_appleufs.c+= -Wno-pointer-sign
.endif
.if ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif
.if make(install)
SUBDIR+=SMM.doc
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2008/02/09 02:37:22 mrg Exp $
# $NetBSD: Makefile,v 1.22 2008/05/04 15:37:19 tsutsui Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
.include <bsd.own.mk>
@ -27,4 +27,8 @@ COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif
.if ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: sys.mk,v 1.95 2008/04/27 03:06:46 tsutsui Exp $
# $NetBSD: sys.mk,v 1.96 2008/05/04 15:37:19 tsutsui Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
unix?= We run NetBSD.
@ -35,7 +35,8 @@ DBG?= -O2
.elif ${MACHINE_ARCH} == "vax"
DBG?= -O1 -fgcse -fstrength-reduce -fgcse-after-reload
.elif ${MACHINE_ARCH} == "m68000"
DBG?= -O1 -fno-tree-sra -fno-tree-copyrename -fno-tree-fre -fno-tree-ch
# see src/doc/HACKS for details
DBG?= -O1
.else
DBG?= -O
.endif