Commit 823835a9 by Chung-Ju Wu

[NDS32] Implement TARGET_MD_ASM_ADJUST hook.

gcc/
	* config/nds32/nds32.c (nds32_md_asm_adjust): New function.
	(TARGET_MD_ASM_ADJUST): Define.

From-SVN: r258443
parent a6c7e777
2018-03-11 Monk Chiang <sh.chiang04@gmail.com>
2018-03-12 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_md_asm_adjust): New function.
(TARGET_MD_ASM_ADJUST): Define.
2018-03-12 Monk Chiang <sh.chiang04@gmail.com>
Kito Cheng <kito.cheng@gmail.com>
Chung-Ju Wu <jasonwucj@gmail.com>
......
......@@ -2750,6 +2750,17 @@ nds32_option_override (void)
/* Miscellaneous Parameters. */
static rtx_insn *
nds32_md_asm_adjust (vec<rtx> &outputs ATTRIBUTE_UNUSED,
vec<rtx> &inputs ATTRIBUTE_UNUSED,
vec<const char *> &constraints ATTRIBUTE_UNUSED,
vec<rtx> &clobbers, HARD_REG_SET &clobbered_regs)
{
clobbers.safe_push (gen_rtx_REG (SImode, TA_REGNUM));
SET_HARD_REG_BIT (clobbered_regs, TA_REGNUM);
return NULL;
}
static void
nds32_init_builtins (void)
{
......@@ -3800,6 +3811,9 @@ nds32_target_alignment (rtx_insn *label)
/* Miscellaneous Parameters. */
#undef TARGET_MD_ASM_ADJUST
#define TARGET_MD_ASM_ADJUST nds32_md_asm_adjust
#undef TARGET_INIT_BUILTINS
#define TARGET_INIT_BUILTINS nds32_init_builtins
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment