From 526fd830c2ce8da3397bc08a267db5aea78db6f3 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Mon, 15 Feb 2016 03:34:47 -0800 Subject: remove exit_ignore_stack ifdefs --- gcc/flow.c | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) (limited to 'gcc/flow.c') diff --git a/gcc/flow.c b/gcc/flow.c index eb20a9f..1c0726b 100755 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -1336,15 +1336,7 @@ mark_regs_live_at_end (set) { int i; -#ifdef EXIT_IGNORE_STACK - if (! EXIT_IGNORE_STACK - || (! FRAME_POINTER_REQUIRED - && ! current_function_calls_alloca - && flag_omit_frame_pointer) - || current_function_sp_is_unchanging) -#endif - /* If exiting needs the right stack value, - consider the stack pointer live at the end of the function. */ + /* Consider the stack pointer live at the end of the function. */ SET_REGNO_REG_SET (set, STACK_POINTER_REGNUM); /* Mark the frame pointer is needed at the end of the function. If @@ -1358,11 +1350,7 @@ mark_regs_live_at_end (set) as being live at the end of the function since they may be referenced by our caller. */ for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) - if (global_regs[i] -#ifdef EPILOGUE_USES - || EPILOGUE_USES (i) -#endif - ) + if (global_regs[i]) SET_REGNO_REG_SET (set, i); } @@ -3031,25 +3019,12 @@ mark_used_regs (needed, live, x, final, insn) break; case RETURN: - /* If exiting needs the right stack value, consider this insn as - using the stack pointer. In any event, consider it as using - all global registers and all registers used by return. */ - -#ifdef EXIT_IGNORE_STACK - if (! EXIT_IGNORE_STACK - || (! FRAME_POINTER_REQUIRED - && ! current_function_calls_alloca - && flag_omit_frame_pointer) - || current_function_sp_is_unchanging) -#endif + /* Consider this insn as using the stack pointer, all global registers + and all registers used by return. */ SET_REGNO_REG_SET (live, STACK_POINTER_REGNUM); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) - if (global_regs[i] -#ifdef EPILOGUE_USES - || EPILOGUE_USES (i) -#endif - ) + if (global_regs[i]) SET_REGNO_REG_SET (live, i); break; -- cgit v1.2.3