From 1e39f528f7351fb989d5eda6d508419eb4259217 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 29 Mar 1993 14:32:52 -0800 Subject: [PATCH] (FUNCTION_PROFILER): Call output_function_profiler. (CALL_USED_REGISTERS): Add more comments about register usage. From-SVN: r3917 --- gcc/config/i960/i960.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index cdcb53a0674..c4b8e51ce63 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -430,6 +430,9 @@ extern int target_flags; r1 is the stack pointer, r2 is the return instruction pointer, r3-r15 are always available, + r3 is clobbered by calls in functions that use the arg pointer + r4-r11 may be clobbered by the mcount call when profiling + r4-r15 if otherwise unused may be used for preserving global registers fp0..fp3 are never available. */ #define CALL_USED_REGISTERS \ {1, 1, 1, 1, 1, 1, 1, 1, \ @@ -849,8 +852,8 @@ extern struct rtx_def *i960_function_arg (); /* Output assembler code to FILE to increment profiler label # LABELNO for profiling a function entry. */ -#define FUNCTION_PROFILER(FILE, LABELNO) \ - fprintf (FILE, "\tlda LP%d,g0\n\tbal mcount\n", (LABELNO)) +#define FUNCTION_PROFILER(FILE, LABELNO) \ + output_function_profiler ((FILE), (LABELNO)); /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function, the stack pointer does not matter. The value is tested only in -- 2.30.2