Work around toolchain/22489 (gcc optimization/11937) by compiling

function.c with -O0.
This commit is contained in:
uwe 2004-02-22 01:24:25 +00:00
parent ad788cab09
commit 7a1ea12099
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2003/12/07 19:56:59 scw Exp $
# $NetBSD: Makefile,v 1.14 2004/02/22 01:24:25 uwe Exp $
NOLINKLIB= # defined
NOLINT= # defined
@ -55,6 +55,12 @@ NOGCCERROR= # defined
COPTS.reload1.c= -O1
.endif
# XXX: toolchain/22489 (gcc optimization/11937)
.if ${MACHINE_CPU} == "sh3"
COPTS.function.c= -O0
.endif
# Headers that host objects depend on (except gen*rtl*)
HH= ${G_HCONFIG_H} genrtl.h