Module Name:    src
Committed By:   mrg
Date:           Sun Jul  3 15:29:35 UTC 2011

Modified Files:
        src/games/phantasia: Makefile
        src/sbin/fsdb: Makefile
        src/sys/lib/libsa: Makefile
        src/sys/lib/libz: Makefile

Log Message:
apply some -O0 with gcc 4.5 and vax.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/games/phantasia/Makefile
cvs rdiff -u -r1.30 -r1.31 src/sbin/fsdb/Makefile
cvs rdiff -u -r1.74 -r1.75 src/sys/lib/libsa/Makefile
cvs rdiff -u -r1.16 -r1.17 src/sys/lib/libz/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/phantasia/Makefile
diff -u src/games/phantasia/Makefile:1.34 src/games/phantasia/Makefile:1.35
--- src/games/phantasia/Makefile:1.34	Sat Feb  6 23:45:25 2010
+++ src/games/phantasia/Makefile	Sun Jul  3 15:29:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.34 2010/02/06 23:45:25 he Exp $
+#	$NetBSD: Makefile,v 1.35 2011/07/03 15:29:34 mrg Exp $
 #	@(#)Makefile	8.1 (Berkeley) 5/31/93
 
 .include <bsd.own.mk>
@@ -52,3 +52,7 @@
 	./map | plot > /dev/tty
 
 .include <bsd.prog.mk>
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
+COPTS.misc.c+=	-O0
+.endif

Index: src/sbin/fsdb/Makefile
diff -u src/sbin/fsdb/Makefile:1.30 src/sbin/fsdb/Makefile:1.31
--- src/sbin/fsdb/Makefile:1.30	Wed Jun 22 02:49:43 2011
+++ src/sbin/fsdb/Makefile	Sun Jul  3 15:29:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.30 2011/06/22 02:49:43 mrg Exp $
+#	$NetBSD: Makefile,v 1.31 2011/07/03 15:29:35 mrg Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/5/93
 
 WARNS?=	3	# XXX: sign-compare issues in ../fsck_ffs
@@ -46,6 +46,9 @@
 .include <bsd.prog.mk>
 
 # XXX
-.if ${HAVE_GCC} == 45
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 45
 COPTS.fsdb.c+=	-Wno-error
+.if ${MACHINE_ARCH} == "vax"
+COPTS.fsdb.c+=	-O0
+.endif
 .endif

Index: src/sys/lib/libsa/Makefile
diff -u src/sys/lib/libsa/Makefile:1.74 src/sys/lib/libsa/Makefile:1.75
--- src/sys/lib/libsa/Makefile:1.74	Mon Jun 20 08:22:43 2011
+++ src/sys/lib/libsa/Makefile	Sun Jul  3 15:29:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.74 2011/06/20 08:22:43 mrg Exp $
+#	$NetBSD: Makefile,v 1.75 2011/07/03 15:29:35 mrg Exp $
 
 LIB=	sa
 NOPIC=	# defined
@@ -88,3 +88,7 @@
 .if defined(HAVE_GCC) || defined(HAVE_PCC)
 CPPFLAGS+=	-Wno-pointer-sign
 .endif
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
+COPTS.bootp.c+=	-O0
+.endif

Index: src/sys/lib/libz/Makefile
diff -u src/sys/lib/libz/Makefile:1.16 src/sys/lib/libz/Makefile:1.17
--- src/sys/lib/libz/Makefile:1.16	Wed Mar 25 18:41:06 2009
+++ src/sys/lib/libz/Makefile	Sun Jul  3 15:29:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2009/03/25 18:41:06 tls Exp $
+#	$NetBSD: Makefile,v 1.17 2011/07/03 15:29:35 mrg Exp $
 
 LIB=	z
 NOPIC=	# defined
@@ -32,3 +32,7 @@
 	@echo building standard ${LIB} library
 	@rm -f lib${LIB}.o
 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
+COPTS.inftrees.c+=	-O0
+.endif

Reply via email to