diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2000-04-20 12:06:58 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2000-04-20 08:06:58 -0400 |
commit | 48d9ade562cf3cc077c60cb1f49436054b34a3c6 (patch) | |
tree | 757241a368aa1da0bb552e22210e8bb74bfaa4dc /gcc/toplev.c | |
parent | 5d14e3560cfbbc06f7ef42addfc15263ecf16c9e (diff) | |
download | gcc-48d9ade562cf3cc077c60cb1f49436054b34a3c6.zip gcc-48d9ade562cf3cc077c60cb1f49436054b34a3c6.tar.gz gcc-48d9ade562cf3cc077c60cb1f49436054b34a3c6.tar.bz2 |
toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
* toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
(rest_of_compilation): Write sibling dump file and account
for time as jump time.
* invoke.texi: Update documentation on dump flags.
From-SVN: r33279
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 4f9a385..17e8ebc 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -251,6 +251,7 @@ struct dump_file_info enum dump_file_index { DFI_rtl, + DFI_sibling, DFI_jump, DFI_cse, DFI_addressof, @@ -284,6 +285,7 @@ enum dump_file_index struct dump_file_info dump_file[DFI_MAX] = { { "rtl", 'r', 0, 0, 0 }, + { "sibling", 'i', 0, 0, 0 }, { "jump", 'j', 0, 0, 0 }, { "cse", 's', 0, 0, 0 }, { "addressof", 'F', 0, 0, 0 }, @@ -2897,8 +2899,13 @@ rest_of_compilation (decl) /* We may have potential sibling or tail recursion sites. Select one (of possibly multiple) methods of performing the call. */ - if (flag_optimize_sibling_calls) - optimize_sibling_and_tail_recursive_calls (); + open_dump_file (DFI_sibling, decl); + TIMEVAR (jump_time, + { + if (flag_optimize_sibling_calls) + optimize_sibling_and_tail_recursive_calls (); + }); + close_dump_file (DFI_sibling, print_rtl, get_insns ()); if (ggc_p) ggc_collect (); |