summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-15 14:03:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-15 14:03:22 +0000
commit8dfc9f31d7c389597e5ee4bac6846c4e94cbe1c9 (patch)
tree1d42bfdeeddcfa2e973e6d69823436f4e4c69c69 /sys/arch
parent06b6b987226b1bb6783edd277a0daa5b72a88f06 (diff)
Let stand/ compile with gcc 3.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvmeppc/stand/Makefile.inc3
-rw-r--r--sys/arch/mvmeppc/stand/libbug/libbug.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mvmeppc/stand/Makefile.inc b/sys/arch/mvmeppc/stand/Makefile.inc
index 399eafdf4bb..b805d2d7e22 100644
--- a/sys/arch/mvmeppc/stand/Makefile.inc
+++ b/sys/arch/mvmeppc/stand/Makefile.inc
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile.inc,v 1.3 2004/07/13 21:03:38 marc Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2004/11/15 14:03:19 miod Exp $
MDEC_DIR?=/usr/mdec
CFLAGS+= -fno-stack-protector -Derrno=errno
+CFLAGS+= -fno-builtin-vprintf -fno-builtin-printf -fno-builtin-putchar
# Load addresses for first and second stage bootstraps
STAGE1_RELOC=4000
diff --git a/sys/arch/mvmeppc/stand/libbug/libbug.h b/sys/arch/mvmeppc/stand/libbug/libbug.h
index 2c724e44ace..c9771c6475b 100644
--- a/sys/arch/mvmeppc/stand/libbug/libbug.h
+++ b/sys/arch/mvmeppc/stand/libbug/libbug.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libbug.h,v 1.4 2004/01/24 21:12:38 miod Exp $ */
+/* $OpenBSD: libbug.h,v 1.5 2004/11/15 14:03:21 miod Exp $ */
#include <machine/prom.h>
@@ -32,5 +32,5 @@ void bugexec(void (*)());
/* Invoke the BUG */
#define MVMEPROM_CALL(x) \
- __asm__ __volatile__ ( __CONCAT("addi %r10,%r0,",__STRING(x)) ); \
+ __asm__ __volatile__ ("addi %r10,%r0," __STRING(x)); \
__asm__ __volatile__ ("sc");