2016-07-21 18:33 GMT+03:00 Georg-Johann Lay <a...@gjlay.de>: > This removes avr's TARGET_SECONDARY_RELOAD implementation which never worked > as expected... > > Its intention was to provide an 8-bit scratch register for loads from > non-generic address-spaces as they might need to set RAMPZ to the needed > flash segment. > > The avr BE uses avr_find_unused_d_reg for that purpose, and if that function > does not come up with a d-reg then the using function avr_out_lpm cooks up a > scratch on the fly. > > Ok for trunk? > > > Johann > > * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define... > (avr_secondary_reload): ...and implementation. > (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling. > * config/avr/avr.md (reload_in<mode>): Remove insns. > (adjust_len) [lpm]: Remove insn attribute value. > * config/avr/predicates.md (flash_operand): Remove insn predicate.
Ok. Approved.