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.