[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

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


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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |addr-space
          Component|target                      |c

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
According to Jelinek, STRING_CST must always be in the default AS:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83805#c9

Hence this is a C front-end bug:  STRING_CST must not be used for AS stuff, and
the C FE must use a VAR_DECL in this case like v7 did.


More information about the Gcc-bugs mailing list