Subject: __USER_LABEL_PREFIX__ for sh3 gcc
To: None <port-sh3@netbsd.org, tech-toolchain@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-toolchain
Date: 01/26/2003 01:45:52
Today I notice build.sh fails in src/tools/texinfo on dreamcast.
(Undefined symbol _libintl_gettext)

The problem is texinfo/intl/libgnuintl.h uses __USER_LABEL_PREFIX__
and src/gnu/dist/toolchain/gcc/config/sh/sh.h defines it "_"
while shle--netbsdelf toolchain has no leading underscores.
Is it ok to apply the attached patch?

Index: gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h,v
retrieving revision 1.4
diff -u -r1.4 netbsd-elf.h
--- gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h	2003/01/24 22:40:04	1.4
+++ gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h	2003/01/25 16:35:57
@@ -52,6 +52,9 @@
 /* NetBSD uses the SVR4 convention for user-visible assembler symbols,
    not the SH convention.  */
 
+#undef USER_LABEL_PREFIX
+#define USER_LABEL_PREFIX ""
+
 #undef LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX "."
 

---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp