From: Trevor Saunders Date: Tue, 28 Apr 2015 04:43:12 +0000 (+0000) Subject: add default for EPILOGUE_USES X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3699d669abd4543fdc3c4607e2d0550e67e52ba;p=gcc.git add default for EPILOGUE_USES gcc/ChangeLog: 2015-04-27 Trevor Saunders * defaults.h (EPILOGUE_USES): Add default definition of false. * df-scan.c (EPILOGUE_USES): Remove check if its undefined. * resource.c (init_resource_info): Likewise. From-SVN: r222504 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72c753d24e4..3846ebc0230 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-04-27 Trevor Saunders + + * defaults.h (EPILOGUE_USES): Add default definition of false. + * df-scan.c (EPILOGUE_USES): Remove check if its undefined. + * resource.c (init_resource_info): Likewise. + 2015-04-27 Trevor Saunders * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition diff --git a/gcc/defaults.h b/gcc/defaults.h index 0af7a027606..6f915bd29c2 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1221,6 +1221,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define HARD_REGNO_RENAME_OK(FROM, TO) true #endif +#ifndef EPILOGUE_USES +#define EPILOGUE_USES(REG) false +#endif + #ifdef GCC_INSN_FLAGS_H /* Dependent default target macro definitions diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 4232ec8d312..9f0e47fe48e 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -72,10 +72,6 @@ typedef struct df_mw_hardreg *df_mw_hardreg_ptr; #define HAVE_sibcall_epilogue 0 #endif -#ifndef EPILOGUE_USES -#define EPILOGUE_USES(REGNO) 0 -#endif - /* The set of hard registers in eliminables[i].from. */ static HARD_REG_SET elim_reg_set; diff --git a/gcc/resource.c b/gcc/resource.c index 26d9fcac523..ba9de123fa0 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -1200,11 +1200,7 @@ init_resource_info (rtx_insn *epilogue_insn) &end_of_function_needs, true); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) - if (global_regs[i] -#ifdef EPILOGUE_USES - || EPILOGUE_USES (i) -#endif - ) + if (global_regs[i] || EPILOGUE_USES (i)) SET_HARD_REG_BIT (end_of_function_needs.regs, i); /* The registers required to be live at the end of the function are