From: Richard Kenner Date: Thu, 30 Jun 1994 09:46:10 +0000 (-0400) Subject: (end_final,profile_function): Profiling variables are size of pointer, X-Git-Tag: misc/cutover-egcs-0~6326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14e7bf7c23ef7c73505606524baaab8fae79186b;p=thirdparty%2Fgcc.git (end_final,profile_function): Profiling variables are size of pointer, not int. From-SVN: r7617 --- diff --git a/gcc/final.c b/gcc/final.c index e2cb53ebd728..201725138393 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -303,7 +303,7 @@ end_final (filename) { char name[20]; int align = exact_log2 (BIGGEST_ALIGNMENT / BITS_PER_UNIT); - int size = (INT_TYPE_SIZE / BITS_PER_UNIT) * count_basic_blocks; + int size = (POINTER_SIZE / BITS_PER_UNIT) * count_basic_blocks; int rounded = size; struct bb_list *ptr; struct bb_str *sptr; @@ -947,14 +947,14 @@ static void profile_function (file) FILE *file; { - int align = MIN (BIGGEST_ALIGNMENT, BITS_PER_WORD); + int align = MIN (BIGGEST_ALIGNMENT, POINTER_SIZE); int sval = current_function_returns_struct; int cxt = current_function_needs_context; 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, UNITS_PER_WORD, 1); + assemble_integer (const0_rtx, POINTER_SIZE / BITS_PER_UNIT, 1); text_section ();