From c8a976c70d152d5073a125fd6d18c15fd0569d72 Mon Sep 17 00:00:00 2001 From: he Date: Thu, 26 May 2005 18:33:36 +0000 Subject: [PATCH] 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". --- doc/HACKS | 10 +++++++++- sys/lkm/net/bsdcomp/Makefile | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/HACKS b/doc/HACKS index 84edbbe6d64f..2f63a28b2036 100644 --- a/doc/HACKS +++ b/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 diff --git a/sys/lkm/net/bsdcomp/Makefile b/sys/lkm/net/bsdcomp/Makefile index 1060598b67f8..77fb5355588a 100644 --- a/sys/lkm/net/bsdcomp/Makefile +++ b/sys/lkm/net/bsdcomp/Makefile @@ -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