Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src apply some -O0 with gcc 4.5 and vax.
details: https://anonhg.NetBSD.org/src/rev/d15449ceb200
branches: trunk
changeset: 766883:d15449ceb200
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jul 03 15:29:34 2011 +0000
description:
apply some -O0 with gcc 4.5 and vax.
diffstat:
games/phantasia/Makefile | 6 +++++-
sbin/fsdb/Makefile | 7 +++++--
sys/lib/libsa/Makefile | 6 +++++-
sys/lib/libz/Makefile | 6 +++++-
4 files changed, 20 insertions(+), 5 deletions(-)
diffs (71 lines):
diff -r 8606aea6ee67 -r d15449ceb200 games/phantasia/Makefile
--- a/games/phantasia/Makefile Sun Jul 03 15:28:47 2011 +0000
+++ b/games/phantasia/Makefile Sun Jul 03 15:29:34 2011 +0000
@@ -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
diff -r 8606aea6ee67 -r d15449ceb200 sbin/fsdb/Makefile
--- a/sbin/fsdb/Makefile Sun Jul 03 15:28:47 2011 +0000
+++ b/sbin/fsdb/Makefile Sun Jul 03 15:29:34 2011 +0000
@@ -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
diff -r 8606aea6ee67 -r d15449ceb200 sys/lib/libsa/Makefile
--- a/sys/lib/libsa/Makefile Sun Jul 03 15:28:47 2011 +0000
+++ b/sys/lib/libsa/Makefile Sun Jul 03 15:29:34 2011 +0000
@@ -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
diff -r 8606aea6ee67 -r d15449ceb200 sys/lib/libz/Makefile
--- a/sys/lib/libz/Makefile Sun Jul 03 15:28:47 2011 +0000
+++ b/sys/lib/libz/Makefile Sun Jul 03 15:29:34 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index