From 0ff0609d035ffb794449e33ed8e13d2018bc3bce Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 9 Nov 2011 22:28:57 +0100 Subject: function.h (requires_stack_frame_p): New prototype. * function.h (requires_stack_frame_p): New prototype. * function.c (requires_stack_frame_p): No longer static. * config/i386/i386.c (ix86_finalize_stack_realign_flags): If stack_realign_fp was just a conservative guess for a function which doesn't use sp/fp/argp at all, clear frame_pointer_needed and stack realignment. From-SVN: r181236 --- gcc/function.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/function.h') diff --git a/gcc/function.h b/gcc/function.h index 42e52ac..ce67add 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -753,6 +753,10 @@ extern void used_types_insert (tree); extern int get_next_funcdef_no (void); extern int get_last_funcdef_no (void); +#ifdef HAVE_simple_return +extern bool requires_stack_frame_p (rtx, HARD_REG_SET, HARD_REG_SET); +#endif + /* In predict.c */ extern bool optimize_function_for_size_p (struct function *); extern bool optimize_function_for_speed_p (struct function *); -- cgit v1.1