re PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)

PR target/53065
	* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.

From-SVN: r186768
This commit is contained in:
Georg-Johann Lay 2012-04-24 15:21:29 +00:00 committed by Georg-Johann Lay
parent 929eeacd4c
commit 59d9ade4ae
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-04-24 Georg-Johann Lay <avr@gjlay.de>
PR target/53065
* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
2012-04-24 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53085

View File

@ -394,6 +394,11 @@ enum reg_class {
#define REGNO_OK_FOR_INDEX_P(NUM) 0
#define HARD_REGNO_CALL_PART_CLOBBERED(REGNO, MODE) \
(((REGNO) < 18 && (REGNO) + GET_MODE_SIZE (MODE) > 18) \
|| ((REGNO) < REG_Y && (REGNO) + GET_MODE_SIZE (MODE) > REG_Y) \
|| ((REGNO) < REG_Z && (REGNO) + GET_MODE_SIZE (MODE) > REG_Z))
#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true
#define STACK_PUSH_CODE POST_DEC