Reduce optimization level for sh5 for one file which causes our gcc
3.3.3 to get an internal compiler error of type "can't split insn".
This commit is contained in:
parent
65f16e5e95
commit
c8a976c70d
10
doc/HACKS
10
doc/HACKS
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: HACKS,v 1.47 2005/05/18 13:58:10 chs Exp $
|
||||
# $NetBSD: HACKS,v 1.48 2005/05/26 18:33:36 he Exp $
|
||||
#
|
||||
# This file is intended to document workarounds for currently unsolved
|
||||
# (mostly) compiler bugs.
|
||||
|
@ -386,6 +386,14 @@ port sh5
|
|||
Drop to -O1 for now when building for sh5.
|
||||
kcah
|
||||
|
||||
hack gcc 3.3.3 nb3 on sh5 - ICE compiling bsd-comp.c
|
||||
cdate Thu May 25 23:05:20 UTC 2005
|
||||
who he
|
||||
file sys/lkm/net/bsdcomp/Makefile : 1.3
|
||||
descr
|
||||
Gcc3 for sh5 gets an ICE compiling this at -O2,
|
||||
"could not split insn". Drop to -O1 for sh5.
|
||||
kcah
|
||||
|
||||
port sun2
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2 2004/06/30 02:58:24 jmc Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2005/05/26 18:33:36 he Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
|
@ -9,4 +9,8 @@ MKMAN= no
|
|||
KMOD= bsdcomp
|
||||
SRCS= lkminit_bsdcomp.c bsd-comp.c
|
||||
|
||||
.if ${MACHINE_CPU} == "sh5"
|
||||
COPTS.bsd-comp.c= -O1
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
|
Loading…
Reference in New Issue