Commit 0c35f902 by Jim Wilson Committed by Jim Wilson

Fix glibc dl-sysdeps.c abort from Jes Sorensen.

	* config/ia64/ia64.c (ia64_compute_frame_size): If reg_fp is zero,
	then set it to LOC_REG (79) instead of aborting.

From-SVN: r40569
parent de5e27be
2001-03-16 Jim Wilson <wilson@redhat.com>
* config/ia64/ia64.c (ia64_compute_frame_size): If reg_fp is zero,
then set it to LOC_REG (79) instead of aborting.
2001-03-16 Phil Edwards <pme@sources.redhat.com> 2001-03-16 Phil Edwards <pme@sources.redhat.com>
* gccbug.in: Remove high priority. * gccbug.in: Remove high priority.
......
...@@ -1390,10 +1390,15 @@ ia64_compute_frame_size (size) ...@@ -1390,10 +1390,15 @@ ia64_compute_frame_size (size)
if (frame_pointer_needed) if (frame_pointer_needed)
{ {
current_frame_info.reg_fp = find_gr_spill (1); current_frame_info.reg_fp = find_gr_spill (1);
/* We should have gotten at least LOC79, since that's what /* If we did not get a register, then we take LOC79. This is guaranteed
HARD_FRAME_POINTER_REGNUM is. */ to be free, even if regs_ever_live is already set, because this is
HARD_FRAME_POINTER_REGNUM. This requires incrementing n_local_regs,
as we don't count loc79 above. */
if (current_frame_info.reg_fp == 0) if (current_frame_info.reg_fp == 0)
abort (); {
current_frame_info.reg_fp = LOC_REG (79);
current_frame_info.n_local_regs++;
}
} }
if (! current_function_is_leaf) if (! current_function_is_leaf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment