diff options
author | Richard Henderson <rth@redhat.com> | 2001-03-27 22:22:23 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-03-27 22:22:23 -0800 |
commit | ad73b558320545ee96736ae3f3373c48d3622504 (patch) | |
tree | 6a3f4acb3012550610fc130ba3daec51f92064a8 /gcc/reg-stack.c | |
parent | 461fc4de6a0434d7fc8c3ef53b25a4e51db69829 (diff) | |
download | gcc-ad73b558320545ee96736ae3f3373c48d3622504.zip gcc-ad73b558320545ee96736ae3f3373c48d3622504.tar.gz gcc-ad73b558320545ee96736ae3f3373c48d3622504.tar.bz2 |
flow.c (tidy_fallthru_edges): Don't combine complex edges.
* flow.c (tidy_fallthru_edges): Don't combine complex edges.
(calculate_global_regs_live): Kill call-clobbered registers
across exception edges.
* reg-stack.c (convert_regs_1): Kill the entire target stack
across non-call exception edges.
From-SVN: r40909
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 0e85a5a..54c3f08 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -2553,10 +2553,15 @@ convert_regs_1 (file, block) } } - /* Care for EH edges specially. The normal return path may return - a value in st(0), but the EH path will not, and there's no need - to add popping code to the edge. */ - if (e->flags & (EDGE_EH | EDGE_ABNORMAL_CALL)) + /* Care for non-call EH edges specially. The normal return path have + values in registers. These will be popped en masse by the unwind + library. */ + if ((e->flags & (EDGE_EH | EDGE_ABNORMAL_CALL)) == EDGE_EH) + target_stack->top = -1; + + /* Other calls may appear to have values live in st(0), but the + abnormal return path will not have actually loaded the values. */ + else if (e->flags & EDGE_ABNORMAL_CALL) { /* Assert that the lifetimes are as we expect -- one value live at st(0) on the end of the source block, and no |