add default for EPILOGUE_USES

gcc/ChangeLog:

2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* 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
This commit is contained in:
Trevor Saunders 2015-04-28 04:43:12 +00:00 committed by Trevor Saunders
parent 1d0275e2bb
commit a3699d669a
4 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* 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 <tbsaunde+gcc@tbsaunde.org>
* defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition

View File

@ -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

View File

@ -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;

View File

@ -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