[Bug tree-optimization/86318] const local aggregates can be assumed not to be modified even when escaped

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 14 15:54:06 GMT 2020


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |90404

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I should add that issuing a warning when an attempt is detected to modify a
const object (or subobject) as requested in pr90404 should help detect changes,
resulting from the optimization, to the behavior of code that deliberately
violates the restriction to modify constant subobjects.


More information about the Gcc-bugs mailing list