(THUMB_FUNCTION_PROFILER): Remove.
(FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it is defined. Co-Authored-By: Nick Clifton <nickc@redhat.com> From-SVN: r57475
This commit is contained in:
parent
100c742042
commit
59be607334
2 changed files with 16 additions and 10 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-09-24 Adam Nemet <anemet@lnxw.com>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
|
||||
(FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
|
||||
is defined.
|
||||
|
||||
2002-09-24 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* config/s390/s390.c (preferred_la_operand_p): New function.
|
||||
|
|
|
@ -1547,7 +1547,10 @@ typedef struct
|
|||
will output the .text section.
|
||||
|
||||
The ``mov ip,lr'' seems like a good idea to stick with cc convention.
|
||||
``prof'' doesn't seem to mind about this! */
|
||||
``prof'' doesn't seem to mind about this!
|
||||
|
||||
Note - this version of the code is designed to work in both ARM and
|
||||
Thumb modes. */
|
||||
#ifndef ARM_FUNCTION_PROFILER
|
||||
#define ARM_FUNCTION_PROFILER(STREAM, LABELNO) \
|
||||
{ \
|
||||
|
@ -1564,20 +1567,16 @@ typedef struct
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef THUMB_FUNCTION_PROFILER
|
||||
#define THUMB_FUNCTION_PROFILER(STREAM, LABELNO) \
|
||||
{ \
|
||||
fprintf (STREAM, "\tmov\tip, lr\n"); \
|
||||
fprintf (STREAM, "\tbl\tmcount\n"); \
|
||||
fprintf (STREAM, "\t.word\tLP%d\n", LABELNO); \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef THUMB_FUNCTION_PROFILER
|
||||
#define FUNCTION_PROFILER(STREAM, LABELNO) \
|
||||
if (TARGET_ARM) \
|
||||
ARM_FUNCTION_PROFILER (STREAM, LABELNO) \
|
||||
else \
|
||||
THUMB_FUNCTION_PROFILER (STREAM, LABELNO)
|
||||
#else
|
||||
#define FUNCTION_PROFILER(STREAM, LABELNO) \
|
||||
ARM_FUNCTION_PROFILER (STREAM, LABELNO)
|
||||
#endif
|
||||
|
||||
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
|
||||
the stack pointer does not matter. The value is tested only in
|
||||
|
|
Loading…
Add table
Reference in a new issue