diff options
author | Adam Nemet <anemet@lnxw.com> | 2002-09-24 16:51:33 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2002-09-24 16:51:33 +0000 |
commit | 59be607334d5b806461ca08574b81925231b763d (patch) | |
tree | 33ea194018d1552c33fbec2e2bbd0669457b7dbf | |
parent | 100c742042048f88027789f7ad2c0841c3df3471 (diff) | |
download | gcc-59be607334d5b806461ca08574b81925231b763d.zip gcc-59be607334d5b806461ca08574b81925231b763d.tar.gz gcc-59be607334d5b806461ca08574b81925231b763d.tar.bz2 |
(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
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/arm/arm.h | 19 |
2 files changed, 16 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b30902..0aad8c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index ffc0459..9c0ce44 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -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 |