This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/13428] gcc-avr doesn't work non-constant array references


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]