OSDN Git Service

(end_final,profile_function): Profiling variables are size of pointer,
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Jun 1994 09:46:10 +0000 (09:46 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Jun 1994 09:46:10 +0000 (09:46 +0000)
not int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7617 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/final.c

index e2cb53e..2017251 100644 (file)
@@ -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 ();