Commit 50256c75 by Chung-Ju Wu Committed by Chung-Ju Wu

[NDS32] Move some target hooks to the bottom of nds32.c file.

gcc/
	* config/nds32/nds32.c
	(TARGET_HARD_REGNO_MODE_OK): Move to the bottom of file.
	(TARGET_MODES_TIEABLE_P): Likewise.

From-SVN: r259547
parent 10c8bd03
2018-04-22 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c
(TARGET_HARD_REGNO_MODE_OK): Move to the bottom of file.
(TARGET_MODES_TIEABLE_P): Likewise.
2018-04-22 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_asm_file_start): Display optimization
level Ofast and Og.
......
......@@ -3843,9 +3843,6 @@ nds32_hard_regno_mode_ok (unsigned int regno, machine_mode mode)
return false;
}
#undef TARGET_HARD_REGNO_MODE_OK
#define TARGET_HARD_REGNO_MODE_OK nds32_hard_regno_mode_ok
/* Implement TARGET_MODES_TIEABLE_P. We can use general registers to
tie QI/HI/SI modes together. */
......@@ -3869,9 +3866,6 @@ nds32_modes_tieable_p (machine_mode mode1, machine_mode mode2)
return false;
}
#undef TARGET_MODES_TIEABLE_P
#define TARGET_MODES_TIEABLE_P nds32_modes_tieable_p
/* Register Classes. */
......@@ -4889,6 +4883,12 @@ nds32_use_blocks_for_constant_p (machine_mode mode,
#undef TARGET_HARD_REGNO_NREGS
#define TARGET_HARD_REGNO_NREGS nds32_hard_regno_nregs
#undef TARGET_HARD_REGNO_MODE_OK
#define TARGET_HARD_REGNO_MODE_OK nds32_hard_regno_mode_ok
#undef TARGET_MODES_TIEABLE_P
#define TARGET_MODES_TIEABLE_P nds32_modes_tieable_p
/* -- Handling Leaf Functions. */
/* -- Registers That Form a Stack. */
......
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