[Bug target/82411] const is not always read-only

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 2 21:25:00 GMT 2017


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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-02
     Ever confirmed|0                           |1

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
To access this as sdata is faster and smaller than as rodata (one
instruction instead of two).

You can use -G0 as Andrew says, or -mno-sdata (or -msdata=none).


More information about the Gcc-bugs mailing list