Use lower optimization level (-O0) for miscfs/genfs/genfs_vnops.c

in order to avoid an internal compiler error with gcc 3.3.3 nb2.
This commit is contained in:
he 2004-05-14 08:58:32 +00:00
parent e063143584
commit bf3ab88a22
2 changed files with 9 additions and 2 deletions

View File

@ -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
##

View File

@ -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}"