From 459f72f52cd203d517aeccdd132cbee537f5f223 Mon Sep 17 00:00:00 2001 From: hjl Date: Sun, 25 May 2008 16:24:43 +0000 Subject: [PATCH] 2008-05-25 H.J. Lu * final.c (frame_pointer_needed): Removed. * flags.h (frame_pointer_needed): Likewise. * function.h (rtl_data): Add frame_pointer_needed. (frame_pointer_needed): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135870 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 ++++++++ gcc/final.c | 6 ------ gcc/flags.h | 6 ------ gcc/function.h | 6 ++++++ 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b585221d44d..2f99a512b01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2008-05-25 H.J. Lu + + * final.c (frame_pointer_needed): Removed. + * flags.h (frame_pointer_needed): Likewise. + + * function.h (rtl_data): Add frame_pointer_needed. + (frame_pointer_needed): New. + 2008-05-25 Arthur Loiret * config.gcc (sh2[lbe]*-*-linux*): Allow target. diff --git a/gcc/final.c b/gcc/final.c index b3185811ad6..5d19e2d2aba 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -178,12 +178,6 @@ CC_STATUS cc_status; CC_STATUS cc_prev_status; #endif -/* Nonzero means current function must be given a frame pointer. - Initialized in function.c to 0. Set only in reload1.c as per - the needs of the function. */ - -int frame_pointer_needed; - /* Number of unmatched NOTE_INSN_BLOCK_BEG notes we have seen. */ static int block_depth; diff --git a/gcc/flags.h b/gcc/flags.h index e7596957d82..1818a42c5ca 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -223,12 +223,6 @@ extern int flag_dump_rtl_in_asm; /* Other basic status info about current function. */ -/* Nonzero means current function must be given a frame pointer. - Set in stmt.c if anything is allocated on the stack there. - Set in reload1.c if anything is allocated on the stack there. */ - -extern int frame_pointer_needed; - /* Nonzero if subexpressions must be evaluated from left-to-right. */ extern int flag_evaluation_order; diff --git a/gcc/function.h b/gcc/function.h index 424cdf7054c..2c469904712 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -392,6 +392,11 @@ struct rtl_data GTY(()) /* Nonzero if code to initialize arg_pointer_save_area has been emitted. */ bool arg_pointer_save_area_init; + + /* Nonzero means current function must be given a frame pointer. + Set in stmt.c if anything is allocated on the stack there. + Set in reload1.c if anything is allocated on the stack there. */ + bool frame_pointer_needed; }; #define return_label (crtl->x_return_label) @@ -405,6 +410,7 @@ struct rtl_data GTY(()) #define avail_temp_slots (crtl->x_avail_temp_slots) #define temp_slot_level (crtl->x_temp_slot_level) #define nonlocal_goto_handler_labels (crtl->x_nonlocal_goto_handler_labels) +#define frame_pointer_needed (crtl->frame_pointer_needed) extern GTY(()) struct rtl_data x_rtl; -- 2.11.0