https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89887
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2019-03-29 Ever confirmed|0 |1 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes the optimization level does change the fact that array can be found not be touched and moved to the read only section. This is not a bug. I dont see a problem that this would cause. Can you explain why you think this is wrong?