MODES_TIEABLE in avr is set such that access to subreg is prevented. This result is significantly sub-optimal code.
Attached patch changes this. No regressions have been found with test suite - indeed things got better! Note this is related to PR/19815 documentation error. -- Summary: [AVR] MODES_TIEABLE incorrect Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andrewhutchinson at cox dot net CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: avr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19924