summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-27 22:22:34 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-27 22:22:34 +0000
commit2cbd13afb29174b4d5e0275765956999bdf29b3c (patch)
tree53ef066b9c79de195ac18303654977657339d8de /gcc/toplev.c
parenta81c2923cc2bcbc7d045cffd963542ca76e3aa75 (diff)
downloadgcc-2cbd13afb29174b4d5e0275765956999bdf29b3c.tar.gz
* jump.c (jump_optimize_1): If we did cross-jumping, and
the data will matter, rebuild the CFG. * reg-stack.c (reg_to_stack): Only (re)build the CFG if not optimizing. Don't run shorten_branches. * toplev.c (rest_of_compilation): Run shorten_branches after reg_to_stack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30223 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 35f88d062f7..1933b41b41b 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -4333,12 +4333,6 @@ rest_of_compilation (decl)
ggc_collect ();
#endif
- /* Shorten branches. */
- TIMEVAR (shorten_branch_time,
- {
- shorten_branches (get_insns ());
- });
-
#ifdef STACK_REGS
if (stack_reg_dump)
open_dump_file (".20.stack", decl_printable_name (decl, 2));
@@ -4356,6 +4350,12 @@ rest_of_compilation (decl)
ggc_collect ();
#endif
+ /* Shorten branches. */
+ TIMEVAR (shorten_branch_time,
+ {
+ shorten_branches (get_insns ());
+ });
+
/* Now turn the rtl into assembler code. */
TIMEVAR (final_time,