From 8dfc9f31d7c389597e5ee4bac6846c4e94cbe1c9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 15 Nov 2004 14:03:22 +0000 Subject: Let stand/ compile with gcc 3. --- sys/arch/mvmeppc/stand/Makefile.inc | 3 ++- sys/arch/mvmeppc/stand/libbug/libbug.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch') 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 @@ -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"); -- cgit v1.2.3