diff --git a/sys/arch/sh5/conf/Makefile.sh5 b/sys/arch/sh5/conf/Makefile.sh5 index 70948c4b3904..571d9ce636ee 100644 --- a/sys/arch/sh5/conf/Makefile.sh5 +++ b/sys/arch/sh5/conf/Makefile.sh5 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.sh5,v 1.12 2004/03/17 20:20:43 scw Exp $ +# $NetBSD: Makefile.sh5,v 1.13 2004/05/14 08:58:32 he Exp $ # Makefile for NetBSD/sh5 # @@ -66,6 +66,10 @@ CFLAGS+= ${SH5_ENDIAN_CC} -m5-${SH5_ABI}media-nofpu AFLAGS+= ${SH5_ENDIAN_CC} -m5-${SH5_ABI}media-nofpu AFLAGS+= -x assembler-with-cpp -traditional-cpp +# The sh5 gcc version 3.3.3 (NetBSD nb2 20040502) gets an internal +# compiler error with higher optimizations on a few files: +CC_NOOPT= ${NORMAL_C:C/-O./-O0/} + ## ## (3) libkern and compat ## diff --git a/sys/arch/sh5/conf/files.sh5 b/sys/arch/sh5/conf/files.sh5 index f7fab5a6f82d..d37c5bce741e 100644 --- a/sys/arch/sh5/conf/files.sh5 +++ b/sys/arch/sh5/conf/files.sh5 @@ -1,4 +1,4 @@ -# $NetBSD: files.sh5,v 1.13 2003/10/05 09:57:47 scw Exp $ +# $NetBSD: files.sh5,v 1.14 2004/05/14 08:58:32 he Exp $ # @@ -155,3 +155,6 @@ file netns/ns_cksum.c ns defflag opt_sh5_debug.h SH5_SIM SH5_DEBUG_ST50 defparam opt_sh5_cpu.h SH5_CPU_SPEED defparam opt_kernel_ipt.h KERNEL_IPT_SIZE + +# special compiler settings (no optimization for a few files) +file miscfs/genfs/genfs_vnops.c compile-with "${CC_NOOPT}"