From cb445c2c440ab33797c5323dd3207554178646cb Mon Sep 17 00:00:00 2001 From: uwe Date: Mon, 4 Aug 2003 00:52:43 +0000 Subject: [PATCH] #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. This makes -pg code compilable. --- gnu/dist/gcc/gcc/config/sh/netbsd-elf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/dist/gcc/gcc/config/sh/netbsd-elf.h b/gnu/dist/gcc/gcc/config/sh/netbsd-elf.h index 513b39f4704a..5254714f20c7 100644 --- a/gnu/dist/gcc/gcc/config/sh/netbsd-elf.h +++ b/gnu/dist/gcc/gcc/config/sh/netbsd-elf.h @@ -96,6 +96,11 @@ Boston, MA 02111-1307, USA. */ (TARGET_CPU_DEFAULT | USERMODE_BIT | TARGET_ENDIAN_DEFAULT) +/* Output assembler code to FILE to call the profiler. */ + +#undef NO_PROFILE_COUNTERS +#define NO_PROFILE_COUNTERS + #undef FUNCTION_PROFILER #define FUNCTION_PROFILER(STREAM,LABELNO) \ do \