diff options
author | Anatoly Sokolov <aesok@post.ru> | 2010-09-02 22:17:12 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2010-09-02 22:17:12 +0400 |
commit | 184866c501bce726b5d01349036e43d7090d40dd (patch) | |
tree | 91c4d3540c24692223ee9435809de37ae2dc937b /gcc | |
parent | 688e49197de88a4d7615eafd2b7691623a8424d1 (diff) | |
download | gcc-184866c501bce726b5d01349036e43d7090d40dd.zip gcc-184866c501bce726b5d01349036e43d7090d40dd.tar.gz gcc-184866c501bce726b5d01349036e43d7090d40dd.tar.bz2 |
m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
* config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
(m32c_class_likely_spilled_p): Make static. Change argument type to
reg_class_t. Change result type to bool.
From-SVN: r163788
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/m32c/m32c-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/m32c/m32c.c | 15 | ||||
-rw-r--r-- | gcc/config/m32c/m32c.h | 2 |
4 files changed, 18 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4062f95..0e34ff7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-09-02 Anatoly Sokolov <aesok@post.ru> + + * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove. + * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove. + * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define. + (m32c_class_likely_spilled_p): Make static. Change argument type to + reg_class_t. Change result type to bool. + 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com> * config/rs6000/rs6000.opt (-mfriz): New switch to control whether diff --git a/gcc/config/m32c/m32c-protos.h b/gcc/config/m32c/m32c-protos.h index b7061e3..5d1c3bb 100644 --- a/gcc/config/m32c/m32c-protos.h +++ b/gcc/config/m32c/m32c-protos.h @@ -22,7 +22,6 @@ #define MM enum machine_mode #define UINT unsigned int -int m32c_class_likely_spilled_p (int); void m32c_conditional_register_usage (void); int m32c_const_ok_for_constraint_p (HOST_WIDE_INT, char, const char *); UINT m32c_dwarf_frame_regnum (int); diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index 7be6fce..066d1a8 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -823,14 +823,19 @@ m32c_secondary_reload_class (int rclass, enum machine_mode mode, rtx x) return NO_REGS; } -/* Implements CLASS_LIKELY_SPILLED_P. A_REGS is needed for address +/* Implements TARGET_CLASS_LIKELY_SPILLED_P. A_REGS is needed for address reloads. */ -int -m32c_class_likely_spilled_p (int regclass) + +#undef TARGET_CLASS_LIKELY_SPILLED_P +#define TARGET_CLASS_LIKELY_SPILLED_P m32c_class_likely_spilled_p + +static bool +m32c_class_likely_spilled_p (reg_class_t regclass) { if (regclass == A_REGS) - return 1; - return reg_class_size[regclass] == 1; + return true; + + return (reg_class_size[(int) regclass] == 1); } /* Implements CLASS_MAX_NREGS. We calculate this according to its diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h index e1ba207..c0eccb4 100644 --- a/gcc/config/m32c/m32c.h +++ b/gcc/config/m32c/m32c.h @@ -421,8 +421,6 @@ enum reg_class #define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true -#define CLASS_LIKELY_SPILLED_P(C) m32c_class_likely_spilled_p (C) - #define CLASS_MAX_NREGS(C,M) m32c_class_max_nregs (C, M) #define CANNOT_CHANGE_MODE_CLASS(F,T,C) m32c_cannot_change_mode_class(F,T,C) |