[PATCH, score] Remove unused REG_CLASS_FROM_LETTER define
2013-11-27 Chen Liqin * config/score/score.h (REG_CLASS_FROM_LETTER): Delete. Index: gcc/config/score/score.h === --- gcc/config/score/score.h(revision 205384) +++ gcc/config/score/score.h(working copy) @@ -395,9 +395,6 @@ /* The class value for index registers. */ #define INDEX_REG_CLASSNO_REGS -extern enum reg_class score_char_to_class[256]; -#define REG_CLASS_FROM_LETTER(C) score_char_to_class[(unsigned char) (C)] - /* Addressing modes, and classification of registers for them. */ #define REGNO_MODE_OK_FOR_BASE_P(REGNO, MODE) \ score_regno_mode_ok_for_base_p (REGNO, 1) Regards --liqin
[patch, score] Remove TARGET_LEGITIMIZE_ADDRESS define
Remove inconsistent code and macro define in score backend, Use gcc default code instead. --liqin ChangeLog: 2012-09-06 Chen Liqin * config/score/score.c : Remove TARGET_LEGITIMIZE_ADDRESS define and score_legitimize_address function, use compiler default code instead. Index: gcc/config/score/score.c === --- gcc/config/score/score.c(revision 191002) +++ gcc/config/score/score.c(working copy) @@ -120,9 +120,6 @@ #undef TARGET_OPTION_OVERRIDE #define TARGET_OPTION_OVERRIDE score_option_override -#undef TARGET_LEGITIMIZE_ADDRESS -#define TARGET_LEGITIMIZE_ADDRESS score_legitimize_address - #undef TARGET_SCHED_ISSUE_RATE #define TARGET_SCHED_ISSUE_RATE score_issue_rate @@ -541,30 +538,6 @@ return gen_rtx_LO_SUM (Pmode, high, addr); } -/* This function is used to implement LEGITIMIZE_ADDRESS. If X can - be legitimized in a way that the generic machinery might not expect, - return the new address. */ -static rtx -score_legitimize_address (rtx x) -{ - enum score_symbol_type symbol_type; - - if (score_symbolic_constant_p (x, &symbol_type) - && symbol_type == SYMBOL_GENERAL) -return score_split_symbol (0, x); - - if (GET_CODE (x) == PLUS - && GET_CODE (XEXP (x, 1)) == CONST_INT) -{ - rtx reg = XEXP (x, 0); - if (!score_valid_base_register_p (reg, 0)) -reg = copy_to_mode_reg (Pmode, reg); - return score_add_offset (reg, INTVAL (XEXP (x, 1))); -} - - return x; -} - /* Fill INFO with information about a single argument. CUM is the cumulative state for earlier arguments. MODE is the mode of this argument and TYPE is its type (if known). NAMED is true if this
Re: [PING][SCORE] Hookize PREFERRED_RELOAD_CLASS
I missed this mail, I will check it soon. Thanks --liqin 在 2012年4月3日 上午2:51,Anatoly Sokolov 写道: > Hi. > > Ping patch: http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00261.html > > >> >> This patch removes obsolete PREFERRED_RELOAD_CLASS macro from the SCORE >> back end in the GCC and introduces equivalent TARGET_PREFERRED_RELOAD_CLASS >> target hook. >> >> Untested. >> >> OK to install? >> >> * config/score/score.h (PREFERRED_RELOAD_CLASS): Remove. >> * config/score/score-protos.h (score_preferred_reload_class): Remove. >> * config/score/score.c (TARGET_PREFERRED_RELOAD_CLASS: Define. >> (score_preferred_reload_class): Make static. Change return and >> 'rclass' argument type to reg_class_t. >> > > Anatoly.
Re: [PING][SCORE] Hookize PREFERRED_RELOAD_CLASS
在 2012年4月3日 上午2:51,Anatoly Sokolov 写道: > Hi. > > Ping patch: http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00261.html >> >> This patch removes obsolete PREFERRED_RELOAD_CLASS macro from the SCORE >> back end in the GCC and introduces equivalent TARGET_PREFERRED_RELOAD_CLASS >> target hook. >> >> Untested. >> >> OK to install? >> >> * config/score/score.h (PREFERRED_RELOAD_CLASS): Remove. >> * config/score/score-protos.h (score_preferred_reload_class): Remove. >> * config/score/score.c (TARGET_PREFERRED_RELOAD_CLASS: Define. >> (score_preferred_reload_class): Make static. Change return and >> 'rclass' argument type to reg_class_t. >> > Anatoly. It's OK to install, Thanks. --liqin
Re: Merge score7 to score.c and remove forwarding functions(with score_handle_option merged).
2011/6/14 Wei Qin > > Merge score7 to score.c and remove forwarding functions. > Merge score_handle_option. > Delete score7.c and score7.h. > > 2011-06-13 Wei Qin > >* config.gcc (score-*-elf): Remove score7.o. >* config/score/t-score-elf: Likewise. >* config/score/score.c: Merge score7 to score.c and remove > forwarding functions. >* config/score/score7.c Deleted. >* config/score/score7.h Deleted. Thanks, patched had commited. --liqin
Re: [4.7] Avoid global state in score_handle_option
Hi Joseph, Joseph Myers 写于 2011-03-10 08:59:52: > Tested building cc1 and xgcc for cross to score-elf. Will commit to > trunk for 4.7 in the absence of target maintainer objections. Thanks Joseph, please commit. We will merge it in our new update. Cheers --liqin
Re: [patch, score] Remove score3 from score backend, delete unusual insn generate
2011/3/11 Paolo Bonzini : > On 03/11/2011 07:16 AM, Liqin Chen wrote: > > Can you please in a follow-up merge score.c and score7.c, so that you can > remove these forwarding functions? > OK, We will do it. Thanks, --liqin