* config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
LAST_CALLEE_SAVED_REG instead of hard-coded register number.
(Last callee saved reg is different for AVR_TINY architecture)
From-SVN: r223009
+2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
+
+ * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
+ LAST_CALLEE_SAVED_REG instead of hard-coded register number.
+ (Last callee saved reg is different for AVR_TINY architecture)
+
2015-05-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
return 0;
/* Return true if any of the following boundaries is crossed:
- 17/18, 27/28 and 29/30. */
+ 17/18 or 19/20 (if AVR_TINY), 27/28 and 29/30. */
- return ((regno < 18 && regno + GET_MODE_SIZE (mode) > 18)
+ return ((regno <= LAST_CALLEE_SAVED_REG &&
+ regno + GET_MODE_SIZE (mode) > (LAST_CALLEE_SAVED_REG + 1))
|| (regno < REG_Y && regno + GET_MODE_SIZE (mode) > REG_Y)
|| (regno < REG_Z && regno + GET_MODE_SIZE (mode) > REG_Z));
}