Blame SOURCES/gcc48-rh1457969.patch

25c7f1
2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
25c7f1
25c7f1
	* config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25c7f1
	current procedure should be profiled.
25c7f1
25c7f1
--- gcc/config/rs6000/rs6000.c
25c7f1
+++ gcc/config/rs6000/rs6000.c
25c7f1
@@ -23198,7 +23198,7 @@ rs6000_output_function_prologue (FILE *file,
25c7f1
   /* Output -mprofile-kernel code.  This needs to be done here instead of
25c7f1
      in output_function_profile since it must go after the ELFv2 ABI
25c7f1
      local entry point.  */
25c7f1
-  if (TARGET_PROFILE_KERNEL)
25c7f1
+  if (TARGET_PROFILE_KERNEL && crtl->profile)
25c7f1
     {
25c7f1
       gcc_assert (DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_ELFv2);
25c7f1
       gcc_assert (!TARGET_32BIT);