mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-03 16:54:27 +08:00
freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and the reference to `mcount' was not correct for the ELF...
� * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and the reference to `mcount' was not correct for the ELF on FreeBSD. From-SVN: r27567
This commit is contained in:
parent
7723c9581c
commit
f4b7680b0f
@ -1,3 +1,8 @@
|
||||
Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
|
||||
|
||||
* i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
|
||||
the reference to `mcount' was not correct for the ELF on FreeBSD.
|
||||
|
||||
Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||
|
||||
* loop.c (strength_reduce): When doing biv->giv conversion, fix up
|
||||
|
@ -135,23 +135,15 @@ Boston, MA 02111-1307, USA. */
|
||||
: ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n)+3 \
|
||||
: (-1))
|
||||
|
||||
/* Output assembler code to FILE to increment profiler label # LABELNO
|
||||
for profiling a function entry. */
|
||||
/* Tell final.c that we don't need a label passed to mcount. */
|
||||
|
||||
#undef FUNCTION_PROFILER
|
||||
#define FUNCTION_PROFILER(FILE, LABELNO) \
|
||||
{ \
|
||||
if (flag_pic) \
|
||||
{ \
|
||||
fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n", \
|
||||
LPREFIX, (LABELNO)); \
|
||||
fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n"); \
|
||||
} \
|
||||
fprintf (FILE, "\tcall *.mcount@GOT(%%ebx)\n"); \
|
||||
else \
|
||||
{ \
|
||||
fprintf (FILE, "\tmovl $%sP%d,%%edx\n", LPREFIX, (LABELNO)); \
|
||||
fprintf (FILE, "\tcall mcount\n"); \
|
||||
} \
|
||||
fprintf (FILE, "\tcall .mcount\n"); \
|
||||
}
|
||||
|
||||
#undef SIZE_TYPE
|
||||
|
Loading…
Reference in New Issue
Block a user