aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Haugen <pthaugen@us.ibm.com>2014-01-15 23:48:12 +0000
committerPat Haugen <pthaugen@gcc.gnu.org>2014-01-15 23:48:12 +0000
commit5d7574fa602f9bf99e19a166d075bea816c4daf7 (patch)
tree996d563febd85abc472fbd2ddbb0d11e26ace9f4
parent6ee70f814d87b2fe4c64d3f58db3ccdcf9e97bfa (diff)
downloadgcc-5d7574fa602f9bf99e19a166d075bea816c4daf7.zip
gcc-5d7574fa602f9bf99e19a166d075bea816c4daf7.tar.gz
gcc-5d7574fa602f9bf99e19a166d075bea816c4daf7.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c2
2 files changed, 6 insertions, 1 deletions
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 <pthaugen@us.ibm.com>
+
+ * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
+ current procedure should be profiled.
+
2014-01-15 Andrew Pinski <apinski@cavium.com>
* 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);