This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20912] C++ FE emitting assignments to read-only global symbols
- From: "dnovillo at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2005 15:00:15 -0000
- Subject: [Bug c++/20912] C++ FE emitting assignments to read-only global symbols
- References: <bug-20912-91@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from dnovillo at redhat dot com 2005-10-12 15:00 -------
Subject: Re: C++ FE emitting assignments to read-only global symbols
On Wednesday 12 October 2005 10:55, mark at codesourcery dot com wrote:
> OK, so my patch is no longer directly useful then? (It still seems like
> it would be an improvement in the abstract, in that assigning to
> TREE_READONLY variables is evil, but if it won't have any immediate
> tangible benefit, I'll leave this for 4.2.)
>
Leaving it for 4.2 should be fine. It is only a micro-optimization and I
only noticed it by chance because we were being too aggressive with it.
Yes, it's nice to stop the FE from generating stores to TREE_READONLY, but
it's not the end of the world for 4.1.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20912