This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for arm profiling
- From: Will Cohen <wcohen at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Jan 2002 15:28:26 -0500
- Subject: Patch for arm profiling
- Organization: Red Hat, Inc.
In gcc/config/arm/arm.h, ARM_FUNCTION_PROFILER is only defined if it
hasn't been defined previously. This patch does the same for
THUMB_FUNCTION_PROFILER. This allows some latitude in how
THUMB_FUNCTION_PROFILER is defined. Currently, the compiler is stuck
with the old mechanism for profiling thumb files.
Change log entry:
* config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currenly
defined.
Okay to apply?
-Will
--
Will Cohen, GCC Engineer ------ ,__o
Red Hat, 2600 Meridian pkwy, Durham, NC 27713 ------ _-\_<,
Office (919)-547-0012 x390 Fax (919)-547-0024 ------ (*)/'(*)
Index: config/arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.134
diff -c -2 -p -r1.134 arm.h
*** arm.h 2002/01/22 17:35:27 1.134
--- arm.h 2002/01/22 20:19:07
*************** typedef struct
*** 1582,1585 ****
--- 1582,1586 ----
#endif
+ #ifndef THUMB_FUNCTION_PROFILER
#define THUMB_FUNCTION_PROFILER(STREAM, LABELNO) \
{ \
*************** typedef struct
*** 1588,1591 ****
--- 1589,1593 ----
fprintf (STREAM, "\t.word\tLP%d\n", LABELNO); \
}
+ #endif
#define FUNCTION_PROFILER(STREAM, LABELNO) \