This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11322] SH profiler outputs multiple definitions of symbol
- From: "uwe at netbsd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2003 16:37:53 -0000
- Subject: [Bug target/11322] SH profiler outputs multiple definitions of symbol
- References: <20030625230530.11322.marcus@mc.pp.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From uwe at netbsd dot org 2003-11-30 16:37 -------
This has been fixed in the NetBSD tree quite some time ago
gnu/dist/gcc/gcc/config/sh/netbsd-elf.h
revision 1.2
date: 2003/08/04 00:52:43; author: uwe; state: Exp; lines: +5 -0
#define NO_PROFILE_COUNTERS as we don't need them. Otherwise both the
code to emit profile counters and the FUNCTION_PROFILER macro in this
file emit/define the same label. For gcc 2.95.3 it used to work
because FUNCTION_PROFILER used local numeric labels instead of using
LABELNO, so it caused no conflict.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322