summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2005-12-24 22:57:26 +0000
committeruwe <uwe@NetBSD.org>2005-12-24 22:57:26 +0000
commit12ffdb00a2a53bc672bea99ef1c3e291f8d351e9 (patch)
tree851bb4dccd66737fe2fdc9c9d2cc57917a49e972
parent2d65de247903fbbcd943aa21c5794f9522cae415 (diff)
Implement WARN_REFERENCES.
-rw-r--r--sys/arch/sh3/include/asm.h11
1 files changed, 3 insertions, 8 deletions
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_ */