work around some GCC4 internal problems on m68000 platform.

document the hack, and update another GCC4 list.
This commit is contained in:
mrg 2006-06-24 05:21:11 +00:00
parent a1299d95e9
commit 9bf1d4a9b8
5 changed files with 37 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: HACKS,v 1.78 2006/06/15 10:55:02 skrll Exp $
# $NetBSD: HACKS,v 1.79 2006/06/24 05:21:11 mrg Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@ -157,6 +157,7 @@ file libexec/ld.elf_so/arch/x86_64/mdreloc.c : 1.27
file sbin/fsck_ext2fs/dir.c : 1.19
file sbin/routed/rtquery/rtquery.c : 1.18
file sys/arch/amd64/amd64/pmap.c : 1.26
file sys/arch/i386/pci/piixpcib.c : 1.4
file sys/crypto/cast128/cast128.c : 1.9
file sys/ddb/db_command.c : 1.86
file sys/dev/cardbus/cardbus_map.c : 1.21
@ -640,6 +641,19 @@ port sun2
hack uses -O0 to avoid the problem.
kcah
hack gcc 4.1.1/fsck_ffs/pass1.c
cdate Fri Jun 23 10:30:25 PDT 2006
who mrg
file sbin/fsck_ffs/Makefile : 1.30
file sbin/fsdb/Makefile : 1.19
file sbin/dump_lfs/Makefile : 1.9
file usr.sbin/ndbootd/Makefile : 1.2
descr
pass1.c causes cc1 to barf for as-yet unknown reasons. this
hack uses -O0 to avoid the problem. (these all seem to be the
same problem.)
kcah
port m68000

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2005/04/19 07:26:38 hannken Exp $
# $NetBSD: Makefile,v 1.7 2006/06/24 05:21:11 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# lfs_inode.c LFS filestore-specific routines
@ -22,4 +22,8 @@ CFLAGS+=-g
.PATH: ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
${NETBSDSRCDIR}/sys/ufs/ffs
.if ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "m68000"
COPTS.lfs_inode.c+= -O0
.endif
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.29 2006/05/11 23:16:29 mrg Exp $
# $NetBSD: Makefile,v 1.30 2006/06/24 05:21:11 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
.include <bsd.own.mk>
@ -23,6 +23,10 @@ SRCS+= progress.c
COPTS.ffs_appleufs.c+= -Wno-pointer-sign
.endif
.if ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -O0
.endif
.if make(install)
SUBDIR+=SMM.doc
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2006/05/11 23:16:29 mrg Exp $
# $NetBSD: Makefile,v 1.19 2006/06/24 05:21:11 mrg 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 ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -O0
.endif
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/05/22 14:41:59 fredette Exp $
# $NetBSD: Makefile,v 1.2 2006/06/24 05:21:11 mrg Exp $
PROG= ndbootd
SRCS= ndbootd.c
@ -6,4 +6,10 @@ MAN= ndbootd.8
CPPFLAGS+=-DHAVE_CONFIG_H -I${.CURDIR}
.include <bsd.own.mk>
.if ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "m68000"
COPTS+= -O0
.endif
.include <bsd.prog.mk>