From 12ffdb00a2a53bc672bea99ef1c3e291f8d351e9 Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 24 Dec 2005 22:57:26 +0000 Subject: Implement WARN_REFERENCES. --- sys/arch/sh3/include/asm.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/arch/sh3/include/asm.h b/sys/arch/sh3/include/asm.h index 98051b52e85..bce3f1d9eaa 100644 --- a/sys/arch/sh3/include/asm.h +++ b/sys/arch/sh3/include/asm.h @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.18 2005/12/24 21:10:28 uwe Exp $ */ +/* $NetBSD: asm.h,v 1.19 2005/12/24 22:57:26 uwe Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -128,12 +128,7 @@ _C_LABEL(alias) = _C_LABEL(sym) #endif -#ifdef __STDC__ -#define __STRING(x) #x -#define WARN_REFERENCES(sym, msg) -#else -#define __STRING(x) "x" -#define WARN_REFERENCES(sym, msg) -#endif /* __STDC__ */ +#define WARN_REFERENCES(_sym,_msg) \ + .section .gnu.warning._sym; .ascii _msg; .previous #endif /* !_SH3_ASM_H_ */ -- cgit