aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-08-16 11:59:03 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-08-16 07:59:03 -0400
commit43db0363f18bb6e0c6de7ad1c6138588d90dfaf7 (patch)
treef52f5b59263e90bcf12f1bfd831bf0ede843f644 /gcc/function.c
parent853d88280aa4989f22b716b55f80b0d36ae5fc27 (diff)
downloadgcc-43db0363f18bb6e0c6de7ad1c6138588d90dfaf7.zip
gcc-43db0363f18bb6e0c6de7ad1c6138588d90dfaf7.tar.gz
gcc-43db0363f18bb6e0c6de7ad1c6138588d90dfaf7.tar.bz2
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
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 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);