Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh5/include Some hacks which will go away when we s...



details:   https://anonhg.NetBSD.org/src/rev/5842ea19d417
branches:  trunk
changeset: 533864:5842ea19d417
user:      scw <scw%NetBSD.org@localhost>
date:      Wed Jul 10 11:36:23 2002 +0000

description:
Some hacks which will go away when we switch to a native NetBSD toolchain.
The SuperH compiler erroneously prepends underscores to global syms...

diffstat:

 sys/arch/sh5/include/asm.h   |  12 ++++++++++--
 sys/arch/sh5/include/cdefs.h |   4 +++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r 3542fa884584 -r 5842ea19d417 sys/arch/sh5/include/asm.h
--- a/sys/arch/sh5/include/asm.h        Wed Jul 10 11:33:21 2002 +0000
+++ b/sys/arch/sh5/include/asm.h        Wed Jul 10 11:36:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.2 2002/07/10 10:24:16 scw Exp $      */
+/*     $NetBSD: asm.h,v 1.3 2002/07/10 11:36:23 scw Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -81,8 +81,16 @@
 #define        PIC_GOT(x)      x
 #define        PIC_GOTOFF(x)   x
 
+/*
+ * XXX: Remove underscore when we switch to native NetBSD toolchain
+ */
+#if __STDC__
+#define _C_LABEL(x)    _ ## x
+#define _ASM_LABEL(x)  _ ## x
+#else
 #define _C_LABEL(x)    _/**/x
-#define        _ASM_LABEL(x)   _/**/x
+#define _ASM_LABEL(x)  _/**/x
+#endif
 
 /* let kernels and others override entrypoint alignment */
 #ifndef _ALIGN_TEXT
diff -r 3542fa884584 -r 5842ea19d417 sys/arch/sh5/include/cdefs.h
--- a/sys/arch/sh5/include/cdefs.h      Wed Jul 10 11:33:21 2002 +0000
+++ b/sys/arch/sh5/include/cdefs.h      Wed Jul 10 11:36:23 2002 +0000
@@ -1,7 +1,9 @@
-/*     $NetBSD: cdefs.h,v 1.1 2002/07/05 13:31:56 scw Exp $    */
+/*     $NetBSD: cdefs.h,v 1.2 2002/07/10 11:36:23 scw Exp $    */
 
 #ifndef _SH5_CDEFS_H_
 #define        _SH5_CDEFS_H_
 
+/* XXX: Temporary, until we switch to native NetBSD toolchain */
+#define        __LEADING_UNDERSCORE
 
 #endif /* _SH5_CDEFS_H_ */



Home | Main Index | Thread Index | Old Index