diff options
author | Jan Hubicka <jh@suse.cz> | 2002-11-15 15:57:12 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-11-15 14:57:12 +0000 |
commit | a5fa1ecdab781978f189f6fe7fff83ab04b4e6e0 (patch) | |
tree | 43591b0682e50da60e903e7c99507c3f031bfdad /gcc/config/i386/i386.h | |
parent | f7109dea6c8f8ebeda06c297487d71475bf54d99 (diff) | |
download | gcc-a5fa1ecdab781978f189f6fe7fff83ab04b4e6e0.zip gcc-a5fa1ecdab781978f189f6fe7fff83ab04b4e6e0.tar.gz gcc-a5fa1ecdab781978f189f6fe7fff83ab04b4e6e0.tar.bz2 |
i386-protos.h (x86_function_profiler): New function
* i386-protos.h (x86_function_profiler): New function
* i386.h (MCOUNT_NAME): New.
(PROFILE_COUNT_REGISTER): New.
(OUTPUT_FUNCTION_PROFILER): Move offline to ...
* i386.c (x86_function_profiler) ... here; fix 64bit support
* beos-elf.h (FUNCTION_PROFILER): Kill.
(MCOUNT_NAME): New.
* freebsd-aout.h (FUNCTION_PROFILER): Kill.
(MCOUNT_NAME): New.
(PROFILE_COUNT_REGISTER): New.
* linux.h (FUNCTION_PROFILER): Kill.
(MCOUNT_NAME): New.
* x86-64.h (FUNCTION_PROFILER): Kill.
(MCOUNT_NAME): New.
* freebsd.h (FUNCTION_PROFILER): Kill.
(MCOUNT_NAME): New.
From-SVN: r59132
Diffstat (limited to 'gcc/config/i386/i386.h')
-rw-r--r-- | gcc/config/i386/i386.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 8e33176..ceba0b62 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1758,20 +1758,11 @@ typedef struct ix86_args { /* Output assembler code to FILE to increment profiler label # LABELNO for profiling a function entry. */ -#define FUNCTION_PROFILER(FILE, LABELNO) \ -do { \ - if (flag_pic) \ - { \ - fprintf ((FILE), "\tleal\t%sP%d@GOTOFF(%%ebx),%%edx\n", \ - LPREFIX, (LABELNO)); \ - fprintf ((FILE), "\tcall\t*_mcount@GOT(%%ebx)\n"); \ - } \ - else \ - { \ - fprintf ((FILE), "\tmovl\t$%sP%d,%%edx\n", LPREFIX, (LABELNO)); \ - fprintf ((FILE), "\tcall\t_mcount\n"); \ - } \ -} while (0) +#define FUNCTION_PROFILER(FILE, LABELNO) x86_function_profiler (FILE, LABELNO) + +#define MCOUNT_NAME "_mcount" + +#define PROFILE_COUNT_REGISTER "edx" /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function, the stack pointer does not matter. The value is tested only in |