diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-07-28 18:00:09 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2010-07-28 20:00:09 +0200 |
commit | 3c5273a96ba8dbf98c40bc6d9d0a1587b4cfedb2 (patch) | |
tree | e9456c08db3a11dbe46b002ed8ff55b4f9ebee25 /gcc/doc/tm.texi | |
parent | c9d75a48c4ea63ab27ccdb40f993236289b243f2 (diff) | |
download | gcc-3c5273a96ba8dbf98c40bc6d9d0a1587b4cfedb2.zip gcc-3c5273a96ba8dbf98c40bc6d9d0a1587b4cfedb2.tar.gz gcc-3c5273a96ba8dbf98c40bc6d9d0a1587b4cfedb2.tar.bz2 |
i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2010-07-28 Kai Tietz <kai.tietz@onevision.com>
* config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
* config/i386/i386.c (ix86_profile_before_prologue): New.
(override_options): Add special handling for -mfentry.
(ix86_function_regparm): Likewise.
(ix86_function_sseregparm): Likewise.
(ix86_frame_pointer_required): Likewise.
(ix86_expand_prologue): Check for ms_hook_prologue.
(x86_function_profiler): Adjust mcount output.
(TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
* config/i386/i386.opt (mfentry): New.
* doc/invoke.texi (mfentry): Add documentation.
* doc/tm.texi: Regenerated..
* doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
* final.c (final_start_function): Replace macro
PROFILE_BEFORE_PROLOGUE by target hook.
* function.c (thread_prologue_and_epilogue_insns): Likewise.
* target.def (profile_before_prologue): New hook.
* targhooks.c (default_profile_before_prologue): New.
* targhooks.h (default_profile_before_prologue): New.
From-SVN: r162651
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index e94fdf6..d59c55f 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -7076,6 +7076,13 @@ Contains the value true if the target places read-only ``small data'' into a separate section. The default value is false. @end deftypevr +@deftypefn {Target Hook} bool TARGET_PROFILE_BEFORE_PROLOGUE (void) +It returns true if target wants profile code emitted before prologue. + +The default version of this hook use the target macro +@code{PROFILE_BEFORE_PROLOGUE}. +@end deftypefn + @deftypefn {Target Hook} bool TARGET_BINDS_LOCAL_P (const_tree @var{exp}) Returns true if @var{exp} names an object for which name resolution rules must resolve to the current ``module'' (dynamic shared library |