diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-03-29 14:32:52 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-03-29 14:32:52 -0800 |
commit | 1e39f528f7351fb989d5eda6d508419eb4259217 (patch) | |
tree | 51d18c2cfcaaa9bec8773ae60b4779da4f75be5e /gcc | |
parent | 7a24dbcfa909b974ee368dacb4dca8486745908b (diff) | |
download | gcc-1e39f528f7351fb989d5eda6d508419eb4259217.zip gcc-1e39f528f7351fb989d5eda6d508419eb4259217.tar.gz gcc-1e39f528f7351fb989d5eda6d508419eb4259217.tar.bz2 |
(FUNCTION_PROFILER): Call output_function_profiler.
(CALL_USED_REGISTERS): Add more comments about register usage.
From-SVN: r3917
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i960/i960.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index cdcb53a..c4b8e51 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 |