[4/8] add default for EPILOGUE_USES
diff mbox

Message ID 1430114140-15817-5-git-send-email-tbsaunde+gcc@tbsaunde.org
State New
Headers show

Commit Message

tbsaunde+gcc@tbsaunde.org April 27, 2015, 5:55 a.m. UTC
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

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.
---
 gcc/defaults.h | 4 ++++
 gcc/df-scan.c  | 4 ----
 gcc/resource.c | 6 +-----
 3 files changed, 5 insertions(+), 9 deletions(-)

Patch
diff mbox

diff --git a/gcc/defaults.h b/gcc/defaults.h
index 0af7a02..6f915bd 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 4232ec8..9f0e47f 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 26d9fca..ba9de12 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