aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-24 17:41:43 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-24 17:41:43 -0500
commit47431dff3ce4a3fca820512de9de65eb4bab7782 (patch)
tree5f31f972abb2093a3189bb5491b3c4c673397478 /gcc/final.c
parentec6c615d6445624fb01aa9345acf7353a51587f3 (diff)
downloadgcc-47431dff3ce4a3fca820512de9de65eb4bab7782.zip
gcc-47431dff3ce4a3fca820512de9de65eb4bab7782.tar.gz
gcc-47431dff3ce4a3fca820512de9de65eb4bab7782.tar.bz2
(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
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c14
1 files changed, 9 insertions, 5 deletions
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 */