summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-16 11:59:03 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-16 11:59:03 +0000
commit23f7e62bd6d142ec3f75062b5efbcc6f0505549f (patch)
treef52f5b59263e90bcf12f1bfd831bf0ede843f644 /gcc/function.c
parent59b24b5b93cc3dcec84105d683da76f0400e4be7 (diff)
downloadgcc-23f7e62bd6d142ec3f75062b5efbcc6f0505549f.tar.gz
* calls.c (calls_function_1, expand_call): Only test
TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE. * function.c (thread_prologue_and_epilogue_insns): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35743 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 975ecdd66d6..7601c94ef36 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -7058,7 +7058,8 @@ thread_prologue_and_epilogue_insns (f)
/* If this function returns with the stack depressed, massage
the epilogue to actually do that. */
- if (TYPE_RETURNS_STACK_DEPRESSED (TREE_TYPE (current_function_decl)))
+ if (TREE_CODE (TREE_TYPE (current_function_decl)) == FUNCTION_TYPE
+ && TYPE_RETURNS_STACK_DEPRESSED (TREE_TYPE (current_function_decl)))
keep_stack_depressed (seq);
emit_jump_insn (seq);