summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2002-01-03 17:40:07 +0000
committerWilliam Cohen <wcohen@gcc.gnu.org>2002-01-03 17:40:07 +0000
commit70f4f91ca9db1b77afee82c9f91ee726160fee1d (patch)
tree037dbfa797702a60300fe2a9d76f987daacf4080 /gcc/config/i386
parentcb1ac742b7b90852e06830b79ba1e6daa47cecb5 (diff)
downloadgcc-70f4f91ca9db1b77afee82c9f91ee726160fee1d.tar.gz
function.h (struct function): Add profile.
* function.h (struct function): Add profile. (current_function_profile): New. doc/extend.texi: Update documentation. * final.c (final_start_function): Use current_function_profile instead of profile_flag. (profile_after_prologue): Likewise. * function.c (expand_function_start): Likewise. (expand_function_start): Likewise. * config/alpha/alpha.c (direct_call_operand): (alpha_does_function_need_gp): Likewise. (alpha_expand_prologue): Likewise. * config/arm/arm.c (arm_expand_prologue): Likewise. thumb_expand_prologue: Likewise. * config/d30v/d30v.c (d30v_stack_info): Likewise. * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise. (fr30_expand_prologue): Likewise. * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise. * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise. * config/i386/i386.h (FINALIZE_PIC): Likewise. * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise. * config/i960/i960.c (i960_output_function_prologue): Likewise. * config/ia64/ia64.c (ia64_compute_frame_size): Likewise. * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise. (m32r_expand_prologue): Likewise. * config/m88k/m88k.c (m88k_layout_frame): Likewise. (m88k_expand_prologue): Likewise. * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise. * config/mips/mips.c (compute_frame_size): Likewise. (mips_expand_prologue): Likewise. (mips_can_use_return_insn): Likewise. * config/pa/elf.h (ASM_FILE_START): Likewise. * config/pa/pa-linux.h (ASM_FILE_START): Likewise. * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise. * config/pa/som.h (ASM_FILE_START): Likewise. * config/romp/romp.c (romp_using_r14): Likewise. * config/rs6000/rs6000.c (first_reg_to_save): Likewise. (rs6000_stack_info): Likewise. * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise. * config/rs6000/xcoff.h (toc_section): Likewise. * config/v850/v850.c (compute_register_save_size): Likewise. From-SVN: r48515
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/cygwin.h2
-rw-r--r--gcc/config/i386/i386.c6
-rw-r--r--gcc/config/i386/i386.h2
-rw-r--r--gcc/config/i386/win32.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index 7517c1cf7e3..c3197f60307 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -427,7 +427,7 @@ extern void i386_pe_unique_section PARAMS ((TREE, int));
#define NO_IMPLICIT_EXTERN_C
#define SUBTARGET_PROLOGUE \
- if (profile_flag \
+ if (current_function_profile \
&& MAIN_NAME_P (DECL_NAME (current_function_decl))) \
{ \
emit_call_insn (gen_rtx (CALL, VOIDmode, \
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index a72bef28112..ff47fa37e2c 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -1329,7 +1329,7 @@ ix86_osf_output_function_prologue (file, size)
if (TARGET_UNDERSCORES)
prefix = "_";
- if (profile_flag && OSF_PROFILE_BEFORE_PROLOGUE)
+ if (current_function_profile && OSF_PROFILE_BEFORE_PROLOGUE)
{
if (!flag_pic && !HALF_PIC_P ())
{
@@ -1369,7 +1369,7 @@ ix86_osf_output_function_prologue (file, size)
#else /* !OSF_OS */
- if (profile_flag && OSF_PROFILE_BEFORE_PROLOGUE)
+ if (current_function_profile && OSF_PROFILE_BEFORE_PROLOGUE)
{
if (!flag_pic)
{
@@ -4156,7 +4156,7 @@ ix86_expand_prologue ()
/* If we are profiling, make sure no instructions are scheduled before
the call to mcount. However, if -fpic, the above call will have
done that. */
- if (profile_flag && ! pic_reg_used)
+ if (current_function_profile && ! pic_reg_used)
emit_insn (gen_blockage ());
}
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 41112b8b90b..b157e9d68c2 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -2283,7 +2283,7 @@ while (0)
#define FINALIZE_PIC \
do \
{ \
- current_function_uses_pic_offset_table |= profile_flag; \
+ current_function_uses_pic_offset_table |= current_function_profile; \
} \
while (0)
diff --git a/gcc/config/i386/win32.h b/gcc/config/i386/win32.h
index 86011fb6df5..0aa7a5794c4 100644
--- a/gcc/config/i386/win32.h
+++ b/gcc/config/i386/win32.h
@@ -205,7 +205,7 @@ extern void i386_pe_unique_section ();
#define NO_IMPLICIT_EXTERN_C
#define SUBTARGET_PROLOGUE \
- if (profile_flag \
+ if (current_function_profile \
&& MAIN_NAME_P (DECL_NAME (current_function_decl)) \
{ \
rtx xops[1]; \