From 43db0363f18bb6e0c6de7ad1c6138588d90dfaf7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 16 Aug 2000 11:59:03 +0000 Subject: calls.c (calls_function_1, [...]): Only test TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE. * calls.c (calls_function_1, expand_call): Only test TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE. * function.c (thread_prologue_and_epilogue_insns): Likewise. From-SVN: r35743 --- gcc/function.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 975ecdd..7601c94 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); -- cgit v1.1