Blame SOURCES/gcc48-rh1457969.patch

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