[Bug target/83801] New: [avr] String constant in __flash not put into .progmem

gjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 11 13:51:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801

            Bug ID: 83801
           Summary: [avr] String constant in __flash not put into .progmem
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

char to_ascii (unsigned i)
{
    static const char __flash code_tab[] = "0123456789";
    return code_tab[i];
}

In the above test case, code_tab is put into .rodata instead of into .progmem.


More information about the Gcc-bugs mailing list