Commit 84e884e9 by Jason Merrill

x

From-SVN: r14413
parent 1f2d8f51
...@@ -3231,7 +3231,8 @@ output_function_prologue (file, size, leaf_function) ...@@ -3231,7 +3231,8 @@ output_function_prologue (file, size, leaf_function)
int offset, real_offset, n_regs; int offset, real_offset, n_regs;
char *base; char *base;
real_offset = offset = -apparent_fsize + frame_base_offset; real_offset = -apparent_fsize;
offset = -apparent_fsize + frame_base_offset;
if (offset < -4096 || offset + num_gfregs * 4 > 4096) if (offset < -4096 || offset + num_gfregs * 4 > 4096)
{ {
/* ??? This might be optimized a little as %g1 might already have a /* ??? This might be optimized a little as %g1 might already have a
...@@ -4898,7 +4899,7 @@ sparc_flat_output_function_prologue (file, size) ...@@ -4898,7 +4899,7 @@ sparc_flat_output_function_prologue (file, size)
sparc_flat_save_restore (file, sp_str, reg_offset, sparc_flat_save_restore (file, sp_str, reg_offset,
gmask & ~(FRAME_POINTER_MASK | RETURN_ADDR_MASK), gmask & ~(FRAME_POINTER_MASK | RETURN_ADDR_MASK),
current_frame_info.fmask, current_frame_info.fmask,
"st", "std", 0); "st", "std", -size);
} }
else else
{ {
...@@ -4960,7 +4961,7 @@ sparc_flat_output_function_prologue (file, size) ...@@ -4960,7 +4961,7 @@ sparc_flat_output_function_prologue (file, size)
sparc_flat_save_restore (file, sp_str, offset, sparc_flat_save_restore (file, sp_str, offset,
gmask & ~(FRAME_POINTER_MASK | RETURN_ADDR_MASK), gmask & ~(FRAME_POINTER_MASK | RETURN_ADDR_MASK),
current_frame_info.fmask, current_frame_info.fmask,
"st", "std", size - size1); "st", "std", -size1);
fprintf (file, "\tset %d,%s\n\tsub %s,%s,%s\n", fprintf (file, "\tset %d,%s\n\tsub %s,%s,%s\n",
size - size1, t1_str, sp_str, t1_str, sp_str); size - size1, t1_str, sp_str, t1_str, sp_str);
#ifdef DWARF2_DEBUGGING_INFO #ifdef DWARF2_DEBUGGING_INFO
......
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