summaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorzippel <zippel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-07 16:46:23 +0000
committerzippel <zippel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-07 16:46:23 +0000
commitc6290e1bdd67671aff86839e0bf745b64321a0bc (patch)
tree341f78f63c5c8a8cca70354c3fe2ccdc86964074 /gcc/function.h
parent4e6322c5d9bd7cfc57385d871d958414cf4f042b (diff)
downloadgcc-c6290e1bdd67671aff86839e0bf745b64321a0bc.tar.gz
* function.h (struct function): Rename calls_unwind_init
to saves_all_registers. (current_function_saves_all_registers): Renamed from current_function_calls_unwind_init. * reload1.c (reload): Set current_function_saves_all_registers. * except.c (expand_builtin_unwind_init): Likewise. * config/m68k/m68k.c (m68k_save_reg): Use current_function_saves_all_registers to save pic register. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128248 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/function.h b/gcc/function.h
index 1317d81f4e6..27bde1c3bd0 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -387,9 +387,10 @@ struct function GTY(())
from nested functions. */
unsigned int has_nonlocal_label : 1;
- /* Nonzero if function calls builtin_unwind_init. */
- unsigned int calls_unwind_init : 1;
-
+ /* Nonzero if function saves all registers, e.g. if it has a nonlocal
+ label that can reach the exit block via non-exceptional paths. */
+ unsigned int saves_all_registers : 1;
+
/* Nonzero if function being compiled has nonlocal gotos to parent
function. */
unsigned int has_nonlocal_goto : 1;
@@ -503,7 +504,7 @@ extern void pop_cfun (void);
#define current_function_uses_const_pool (cfun->uses_const_pool)
#define current_function_epilogue_delay_list (cfun->epilogue_delay_list)
#define current_function_has_nonlocal_label (cfun->has_nonlocal_label)
-#define current_function_calls_unwind_init (cfun->calls_unwind_init)
+#define current_function_saves_all_registers (cfun->saves_all_registers)
#define current_function_has_nonlocal_goto (cfun->has_nonlocal_goto)
#define current_function_has_asm_statement (cfun->has_asm_statement)