This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13428] gcc-avr doesn't work non-constant array references
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Dec 2003 15:56:33 -0000
- Subject: [Bug c/13428] gcc-avr doesn't work non-constant array references
- References: <20031218064547.13428.ken@realtronix.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-25 15:56 -------
> When I remove the PROGMEM directive from Langs likes below:
>
> const char foo[] PROGMEM = "foo";
> const char bar[] PROGMEM = "bar";
> PGM_P Langs[2] = {foo, bar};
>
> strcpy_P() works well with constant or variable index array. The source
> address is correct now. Therefore, Langs cannot be put in program memory.
Then it is a problem with GCC at all because the attribute only puts an extra line in the asm.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13428