summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2006-05-08 11:07:57 +0000
committerhe <he@NetBSD.org>2006-05-08 11:07:57 +0000
commitb28792d8d433dffe0cae406d1ee3acef7a438c1c (patch)
tree8483863fe3878593305b13d4efb2f452a34dd926 /usr.bin/make
parent25958e5e07ab75df231f22ea593e33dd8e8b5fbf (diff)
Our gcc 3.3.3 (nb3) for hppa gets an "unrecognized insn" internal
compiler error when building buf.c with -O2, so reduce optimization level to -O1 for this single file. To be documented in docs/HACKS, discussed with skrll.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile
index 6bcc938abb7..c7103bbd192 100644
--- a/usr.bin/make/Makefile
+++ b/usr.bin/make/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2006/04/22 19:40:40 christos Exp $
+# $NetBSD: Makefile,v 1.35 2006/05/08 11:07:57 he Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -31,6 +31,11 @@ CPPFLAGS+= ${CPPFLAGS_${.TARGET}} -DMAKE_NATIVE
main.o: ${OBJS:Nmain.o} ${MAKEFILE}
COPTS.var.c+= -Wno-cast-qual
+# XXX Triggers an "unrecognized insn" internal compiler error
+.if ${MACHINE_ARCH} == "hppa"
+COPTS.buf.c= -O1
+.endif
+
# A simple unit-test driver to help catch regressions
accept test:
cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}