http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60075
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |addr-space, wrong-code
Target| |avr
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-02-05
Ever confirmed|0 |1
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
The code is correct of -fno-ivopts or -fno-tree-loop-optimize is added to the
command options.
Presumably, the problem is that the __memx address space uses a 24-bit mode
(PSImode) but sizetype is only 16 bits.