From 47431dff3ce4a3fca820512de9de65eb4bab7782 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 24 Dec 1995 17:41:43 -0500 Subject: (end_final): Extended header increased to 11 words. (profile_after_prologue): FUNCTION_BLOCK_PROFILER uses count_basic_blocks instead profile_label_no. From-SVN: r10849 --- gcc/final.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'gcc/final.c') diff --git a/gcc/final.c b/gcc/final.c index 481782e..6fa3e7e 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -324,8 +324,8 @@ end_final (filename) data_section (); - /* Output the main header, of 10 words: - 0: 1 if this file's initialized, else 0. + /* Output the main header, of 11 words: + 0: 1 if this file is initialized, else 0. 1: address of file name (LPBX1). 2: address of table of counts (LPBX2). 3: number of counts in the table. @@ -337,7 +337,8 @@ end_final (filename) 6: Number of bytes in this header. 7: address of table of function names (LPBX4). 8: address of table of line numbers (LPBX5) or 0. - 9: address of table of file names (LPBX6) or 0. */ + 9: address of table of file names (LPBX6) or 0. + 10: space reserved for basic block profiling. */ ASM_OUTPUT_ALIGN (asm_out_file, align); @@ -364,7 +365,7 @@ end_final (filename) assemble_integer (gen_rtx (SYMBOL_REF, Pmode, name), UNITS_PER_WORD, 1); /* byte count for extended structure. */ - assemble_integer (GEN_INT (10 * UNITS_PER_WORD), UNITS_PER_WORD, 1); + assemble_integer (GEN_INT (11 * UNITS_PER_WORD), UNITS_PER_WORD, 1); /* address of function name table */ ASM_GENERATE_INTERNAL_LABEL (name, "LPBX", 4); @@ -384,6 +385,9 @@ end_final (filename) assemble_integer (const0_rtx, UNITS_PER_WORD, 1); } + /* space for extension ptr (link field) */ + assemble_integer (const0_rtx, UNITS_PER_WORD, 1); + /* Output the file name changing the suffix to .d for Sun tcov compatibility. */ ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LPBX", 1); @@ -957,7 +961,7 @@ profile_after_prologue (file) #ifdef FUNCTION_BLOCK_PROFILER if (profile_block_flag) { - FUNCTION_BLOCK_PROFILER (file, profile_label_no); + FUNCTION_BLOCK_PROFILER (file, count_basic_blocks); } #endif /* FUNCTION_BLOCK_PROFILER */ -- cgit v1.1