+2003-06-15 Theodore A. Roth <troth@openavr.org>
+
+ * avr-tdep.c (avr_register_type): Remove a blank line.
+ (avr_scan_prologue): Correct some comments.
+
2003-06-15 Theodore A. Roth <troth@openavr.org>
* avr-tdep.c (avr_scan_prologue): Update comment describing the various
{
if (reg_nr == AVR_PC_REGNUM)
return builtin_type_uint32;
-
if (reg_nr == AVR_SP_REGNUM)
return builtin_type_void_data_ptr;
else
sbiw r28,<LOCALS_SIZE>
in __tmp_reg__,__SREG__
cli
- out __SP_L__,r28
- out __SREG__,__tmp_reg__
out __SP_H__,r29
+ out __SREG__,__tmp_reg__
+ out __SP_L__,r28
A typical AVR function prologue without a frame pointer might look like
this:
/* Third stage of the prologue scanning. (Really two stages)
Scan for:
sbiw r28,XX or subi r28,lo8(XX)
- sbci r29,hi8(XX)
+ sbci r29,hi8(XX)
in __tmp_reg__,__SREG__
cli
out __SP_H__,r29