Commit 9bb7ffda by Jim Wilson

(output_function_epilogue): Emit 'nop' instead of

'sub %sp,-0,%sp' when the frame is empty.

From-SVN: r4218
parent ae0cab49
...@@ -2246,6 +2246,10 @@ output_function_epilogue (file, size, leaf_function) ...@@ -2246,6 +2246,10 @@ output_function_epilogue (file, size, leaf_function)
final_scan_insn (XEXP (current_function_epilogue_delay_list, 0), final_scan_insn (XEXP (current_function_epilogue_delay_list, 0),
file, 1, 0, 1); file, 1, 0, 1);
} }
/* Output 'nop' instead of 'sub %sp,-0,%sp' when no frame, so as to
avoid generating confusing assembly language output. */
else if (actual_fsize == 0)
fprintf (file, "\t%s\n\tnop\n", ret);
else if (actual_fsize <= 4096) else if (actual_fsize <= 4096)
fprintf (file, "\t%s\n\tsub %%sp,-%d,%%sp\n", ret, actual_fsize); fprintf (file, "\t%s\n\tsub %%sp,-%d,%%sp\n", ret, actual_fsize);
else if (actual_fsize <= 8192) else if (actual_fsize <= 8192)
......
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