From 5d7574fa602f9bf99e19a166d075bea816c4daf7 Mon Sep 17 00:00:00 2001 From: Pat Haugen Date: Wed, 15 Jan 2014 23:48:12 +0000 Subject: rs6000.c (rs6000_output_function_prologue): Check if current procedure should be profiled. * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if current procedure should be profiled. From-SVN: r206650 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2781bd0..0788036 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-01-15 Pat Haugen + + * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if + current procedure should be profiled. + 2014-01-15 Andrew Pinski * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 289b52c..a479219 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -23198,7 +23198,7 @@ rs6000_output_function_prologue (FILE *file, /* Output -mprofile-kernel code. This needs to be done here instead of in output_function_profile since it must go after the ELFv2 ABI local entry point. */ - if (TARGET_PROFILE_KERNEL) + if (TARGET_PROFILE_KERNEL && crtl->profile) { gcc_assert (DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_ELFv2); gcc_assert (!TARGET_32BIT); -- cgit v1.1