reg-stack.c (compensate_edge): Remove original prototype.
authorRoger Sayle <roger@eyesopen.com>
Fri, 27 May 2005 22:57:39 +0000 (22:57 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 27 May 2005 22:57:39 +0000 (22:57 +0000)
commit1c320f82aba94a006bda5a3264681f15685c5e3a
treec748dc271d28039f2d586b93c3aa2c1f6f3a2ed3
parentb59fa6cf91b357b25e00dd3f1c3e88dd5d0220e2
reg-stack.c (compensate_edge): Remove original prototype.

* reg-stack.c (compensate_edge): Remove original prototype.
(propagate_stack): New function to copy the stack layout
at the start of a basic block from the layout at the end of
one of its predecessors.
(compensate_edge): Assume that both source and destination
blocks have already had their stack layouts defined.
(compensate_edges): Traverse all non-entry edges in the CFG
and call compensate_edge on each in turn.
(convert_regs_1): Change return type to void.  Call
propagate_stack instead of compensate_edge.
(convert_regs_2): Change return type to void.  Update call
to convert_regs_1 to ignore the (now void) return value.
(convert_regs): Update calls to convert_regs_2 to ignore
the (now void) return value.  After all the basic blocks have
been processed, call compensate_edges to actually emit new
insns.
(reg_to_stack): Initialize the aux info for each basic block
with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.

From-SVN: r100283
gcc/ChangeLog
gcc/reg-stack.c