Commit 258d81a8 by Michael Meissner

Make sure all fields in current_frame_info are initialized.

From-SVN: r2756
parent 77edb222
......@@ -3813,7 +3813,7 @@ compute_frame_size (size)
function, so allocate some stack space to make it happy. */
if (args_size == 0 && current_function_calls_alloca)
args_size = 4*UNITS_PER_WORD;
args_size = 4*UNITS_PER_WORD;
total_size = var_size + args_size + extra_size;
......@@ -3873,6 +3873,12 @@ compute_frame_size (size)
current_frame_info.gp_sp_offset = offset;
current_frame_info.gp_save_offset = offset - total_size;
}
else
{
current_frame_info.gp_sp_offset = 0;
current_frame_info.gp_save_offset = 0;
}
if (fmask)
{
......@@ -3880,6 +3886,11 @@ compute_frame_size (size)
current_frame_info.fp_sp_offset = offset;
current_frame_info.fp_save_offset = offset - total_size + UNITS_PER_WORD;
}
else
{
current_frame_info.fp_sp_offset = 0;
current_frame_info.fp_save_offset = 0;
}
/* Ok, we're done. */
return total_size;
......
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