projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0cab4
)
(output_function_epilogue): Emit 'nop' instead of
author
Jim Wilson
<wilson@gcc.gnu.org>
Sun, 25 Apr 1993 21:14:37 +0000
(14:14 -0700)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Sun, 25 Apr 1993 21:14:37 +0000
(14:14 -0700)
'sub %sp,-0,%sp' when the frame is empty.
From-SVN: r4218
gcc/config/sparc/sparc.c
patch
|
blob
|
history
diff --git
a/gcc/config/sparc/sparc.c
b/gcc/config/sparc/sparc.c
index 1d132c7af4ce5ab102598178a2e3c5c855747246..f65ea0a63f892cdfd4cf05e1aae4f8259c10b729 100644
(file)
--- a/
gcc/config/sparc/sparc.c
+++ b/
gcc/config/sparc/sparc.c
@@
-2246,6
+2246,10
@@
output_function_epilogue (file, size, leaf_function)
final_scan_insn (XEXP (current_function_epilogue_delay_list, 0),
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)
fprintf (file, "\t%s\n\tsub %%sp,-%d,%%sp\n", ret, actual_fsize);
else if (actual_fsize <= 8192)