summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-01-31 17:20:44 +0000
committerobrien <obrien@FreeBSD.org>2002-01-31 17:20:44 +0000
commit9e7f705ccb58b31fabd65a3b33344836a53e9c0d (patch)
tree5dd074a39cb62829acff574fa469555da3d1060b /contrib
parentbbb9179cca445daf5c834e4a21b41362c1174ffb (diff)
downloadFreeBSD-src-9e7f705ccb58b31fabd65a3b33344836a53e9c0d.zip
FreeBSD-src-9e7f705ccb58b31fabd65a3b33344836a53e9c0d.tar.gz
MFC: gcc.295/config/alpha/freebsd.h revision 1.12:
Remove our definition for FUNCTION_PROFILER as it is wrong. Note that "jsr $28,_mcount" is a macro for ldq $27, _mcount($29) !literal!1 jsr $28, ($27), _mcount !lituse_jsr!1 1. The call to _mcount is added by alpha_expand_prologue after we load the gp. Our _mcount uses $27 for the incoming address, unlike OSF/1 and Linux, which use $28. This probably doesn't matter since we probably don't use $27 within _mcount itself. 2. You can't use this insn with _mcount because it uses the PLT, which clobbers the return address in $28. Note that the prologue_mcount pattern carefully avoids adding the lituse_jsr relocation so that we call through the GOT directly. Submitted by: Richard Henderson <rth@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/alpha/freebsd.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/contrib/gcc/config/alpha/freebsd.h b/contrib/gcc/config/alpha/freebsd.h
index f635ff9..1584f42 100644
--- a/contrib/gcc/config/alpha/freebsd.h
+++ b/contrib/gcc/config/alpha/freebsd.h
@@ -116,14 +116,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef HAS_INIT_SECTION
-/* Output assembler code to FILE to increment profiler label # LABELNO
- for profiling a function entry. Under FreeBSD/Alpha, the assembler does
- nothing special with -pg. */
-
-#undef FUNCTION_PROFILER
-#define FUNCTION_PROFILER(FILE, LABELNO) \
- fputs ("\tjsr $28,_mcount\n", (FILE)) /* at */
-
/* Show that we need a GP when profiling. */
#undef TARGET_PROFILING_NEEDS_GP
#define TARGET_PROFILING_NEEDS_GP
OpenPOWER on IntegriCloud