diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-03-10 08:24:09 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-03-10 08:24:09 +0000 |
| commit | 93ccf2fa5ea80bcbed729c1e98d4841556ac7f54 (patch) | |
| tree | d1469e2bff7fc921d6104ea6c2997dcc10af9797 | |
| parent | b4abbbcad35ba8a9ccb1b6f59b62e86e57b705aa (diff) | |
Notes
| -rw-r--r-- | gnu/usr.bin/cc/cc_int/final.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_int/final.c b/gnu/usr.bin/cc/cc_int/final.c index b1f4e879a6cd..157510adc643 100644 --- a/gnu/usr.bin/cc/cc_int/final.c +++ b/gnu/usr.bin/cc/cc_int/final.c @@ -333,6 +333,8 @@ end_final (filename) ASM_OUTPUT_ALIGN (asm_out_file, align); + fprintf(asm_out_file,".stabs \"bbset\", 25, 0, 0, LPBX0\n"); + ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LPBX", 0); /* zero word */ assemble_integer (const0_rtx, UNITS_PER_WORD, 1); @@ -902,6 +904,8 @@ final_start_function (first, file, optimize) /* The Sun386i and perhaps other machines don't work right if the profiling code comes after the prologue. */ + if (profile_block_flag) + add_bb (file); #ifdef PROFILE_BEFORE_PROLOGUE if (profile_flag) profile_function (file); @@ -1055,6 +1059,9 @@ final_end_function (first, file, optimize) code to restore the stack frame and return to the caller. */ FUNCTION_EPILOGUE (file, get_frame_size ()); #endif + if (profile_block_flag) + add_bb (file); + #ifdef SDB_DEBUGGING_INFO if (write_symbols == SDB_DEBUG) |
