Commit 14e7bf7c by Richard Kenner

(end_final,profile_function): Profiling variables are size of pointer,

not int.

From-SVN: r7617
parent 8e1a11fc
...@@ -303,7 +303,7 @@ end_final (filename) ...@@ -303,7 +303,7 @@ end_final (filename)
{ {
char name[20]; char name[20];
int align = exact_log2 (BIGGEST_ALIGNMENT / BITS_PER_UNIT); 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; int rounded = size;
struct bb_list *ptr; struct bb_list *ptr;
struct bb_str *sptr; struct bb_str *sptr;
...@@ -947,14 +947,14 @@ static void ...@@ -947,14 +947,14 @@ static void
profile_function (file) profile_function (file)
FILE *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 sval = current_function_returns_struct;
int cxt = current_function_needs_context; int cxt = current_function_needs_context;
data_section (); data_section ();
ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT)); ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT));
ASM_OUTPUT_INTERNAL_LABEL (file, "LP", profile_label_no); 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 (); text_section ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment