This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] [Commited] PR 11322, profile code is broken for sh-netbsd


The problem is that sh-netbsd's FUNCTION_PROFILER use the label which are also
used for the PROFILE_COUNTERS which are not used by netbsd.
This patch fixes that bug by defining NO_PROFILE_COUNTERS.
Commited as obvious on the mainline and 3.3.3.



ChangeLog: * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.

Patch:

Index: config/sh/netbsd-elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/netbsd-elf.h,v
retrieving revision 1.6
diff -u -p -r1.6 netbsd-elf.h
--- config/sh/netbsd-elf.h	27 Sep 2003 04:48:28 -0000	1.6
+++ config/sh/netbsd-elf.h	5 Dec 2003 04:34:55 -0000
@@ -93,6 +93,8 @@ Boston, MA 02111-1307, USA.  */
 #define TARGET_DEFAULT \
   (TARGET_CPU_DEFAULT | USERMODE_BIT | TARGET_ENDIAN_DEFAULT)

+/* Define because we use the label and we do not need them. */
+#define NO_PROFILE_COUNTERS

 #undef FUNCTION_PROFILER
 #define FUNCTION_PROFILER(STREAM,LABELNO)				\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]