+2006-03-27 Anatoly Sokolov <aesok@post.ru>
+
+ * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
+ pointer regs.
+ * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
+ regs to "__SP_L__" and "__SP_H__".
+
2007-03-27 Richard Guenther <rguenther@suse.de>
* tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
int
avr_hard_regno_mode_ok (int regno, enum machine_mode mode)
{
+ /* Disallow QImode in stack pointer regs. */
+ if ((regno == REG_SP || regno == (REG_SP + 1)) && mode == QImode)
+ return 0;
+
/* The only thing that can go into registers r28:r29 is a Pmode. */
if (regno == REG_Y && mode == Pmode)
return 1;
"r8","r9","r10","r11","r12","r13","r14","r15", \
"r16","r17","r18","r19","r20","r21","r22","r23", \
"r24","r25","r26","r27","r28","r29","r30","r31", \
- "__SPL__","__SPH__","argL","argH"}
+ "__SP_L__","__SP_H__","argL","argH"}
#define FINAL_PRESCAN_INSN(insn, operand, nop) final_prescan_insn (insn, operand,nop)