[taken from gcc-2.95.3-latest-cvs]

from 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
	* final.c (profile_function): Do not emit profile counters in
	the data section, if NO_PROFILE_COUNTERS is defined.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9590 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2004-10-28 18:21:57 +00:00
parent 8d8ec347b1
commit a8e3cfa07e

View File

@ -1701,7 +1701,9 @@ static void
profile_function (file)
FILE *file;
{
#ifndef NO_PROFILE_COUNTERS
int align = MIN (BIGGEST_ALIGNMENT, LONG_TYPE_SIZE);
#endif
#if defined(ASM_OUTPUT_REG_PUSH)
#if defined(STRUCT_VALUE_INCOMING_REGNUM) || defined(STRUCT_VALUE_REGNUM)
int sval = current_function_returns_struct;
@ -1711,10 +1713,12 @@ profile_function (file)
#endif
#endif /* ASM_OUTPUT_REG_PUSH */
#ifndef NO_PROFILE_COUNTERS
data_section ();
ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT));
ASM_OUTPUT_INTERNAL_LABEL (file, "LP", profile_label_no);
assemble_integer (const0_rtx, LONG_TYPE_SIZE / BITS_PER_UNIT, 1);
#endif
function_section (current_function_decl);
@ -3043,7 +3047,8 @@ cleanup_subreg_operands (insn)
if (GET_CODE (recog_operand[i]) == SUBREG)
recog_operand[i] = alter_subreg (recog_operand[i]);
else if (GET_CODE (recog_operand[i]) == PLUS
|| GET_CODE (recog_operand[i]) == MULT)
|| GET_CODE (recog_operand[i]) == MULT
|| GET_CODE (recog_operand[i]) == MEM)
recog_operand[i] = walk_alter_subreg (recog_operand[i]);
}
@ -3052,7 +3057,8 @@ cleanup_subreg_operands (insn)
if (GET_CODE (*recog_dup_loc[i]) == SUBREG)
*recog_dup_loc[i] = alter_subreg (*recog_dup_loc[i]);
else if (GET_CODE (*recog_dup_loc[i]) == PLUS
|| GET_CODE (*recog_dup_loc[i]) == MULT)
|| GET_CODE (*recog_dup_loc[i]) == MULT
|| GET_CODE (*recog_dup_loc[i]) == MEM)
*recog_dup_loc[i] = walk_alter_subreg (*recog_dup_loc[i]);
}
}