diff options
author | YamaArashi <shadow962@live.com> | 2016-02-15 03:34:47 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-15 03:34:47 -0800 |
commit | 526fd830c2ce8da3397bc08a267db5aea78db6f3 (patch) | |
tree | b9965d4ae9ca0c1f5f68ce71bfe4108d73f31d77 /gcc/resource.c | |
parent | dae4baf0b704d1b566bbff41774f220b00bf365b (diff) |
remove exit_ignore_stack ifdefs
Diffstat (limited to 'gcc/resource.c')
-rwxr-xr-x | gcc/resource.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index 56ca933..d874d52 100755 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -1071,9 +1071,8 @@ init_resource_info (epilogue_insn) /* Indicate what resources are required to be valid at the end of the current function. The condition code never is and memory always is. If the - frame pointer is needed, it is and so is the stack pointer unless - EXIT_IGNORE_STACK is non-zero. If the frame pointer is not needed, the - stack pointer is. Registers used to return the function value are + frame pointer is needed, it is. The stack pointer is needed. + Registers used to return the function value are needed. Registers holding global variables are needed. */ end_of_function_needs.cc = 0; @@ -1084,13 +1083,8 @@ init_resource_info (epilogue_insn) if (frame_pointer_needed) { SET_HARD_REG_BIT (end_of_function_needs.regs, FRAME_POINTER_REGNUM); -#ifdef EXIT_IGNORE_STACK - if (! EXIT_IGNORE_STACK - || current_function_sp_is_unchanging) -#endif - SET_HARD_REG_BIT (end_of_function_needs.regs, STACK_POINTER_REGNUM); } - else + SET_HARD_REG_BIT (end_of_function_needs.regs, STACK_POINTER_REGNUM); if (current_function_return_rtx != 0) @@ -1098,11 +1092,7 @@ init_resource_info (epilogue_insn) &end_of_function_needs, 1); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) - if (global_regs[i] -#ifdef EPILOGUE_USES - || EPILOGUE_USES (i) -#endif - ) + if (global_regs[i]) SET_HARD_REG_BIT (end_of_function_needs.regs, i); /* The registers required to be live at the end of the function are |