This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38691] missed optimization with const pointers
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2009 10:27:48 -0000
- Subject: [Bug tree-optimization/38691] missed optimization with const pointers
- References: <bug-38691-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-02 10:27 -------
const doesn't have any semantic meaning. Which means that it is valid for bar
to change the memory pointed to by its arguments - just not through the const
qualified pointers.
There is no way to tell the middle-end about anonymous readonly memory.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38691