]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (rs6000_output_function_prologue): Check if current procedure should be...
authorPat Haugen <pthaugen@us.ibm.com>
Wed, 15 Jan 2014 23:48:12 +0000 (23:48 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Wed, 15 Jan 2014 23:48:12 +0000 (23:48 +0000)
* config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
current procedure should be profiled.

From-SVN: r206650

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 2781bd05da62cabf4db2e057b5e34be541aef394..0788036f3b47bf04caebfa1d68b5212a8c52cc1b 100644 (file)
@@ -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
index 289b52c793cd50a798432900223cd8bc50aa5a77..a479219e2616220771d1e525fe3fecc15e0b9f3a 100644 (file)
@@ -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);