This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38985] [4.2/4.3/4.4 Regression] missing constraints for pointers accessed directly via their address
- 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: 27 Jan 2009 12:06:01 -0000
- Subject: [Bug tree-optimization/38985] [4.2/4.3/4.4 Regression] missing constraints for pointers accessed directly via their address
- References: <bug-38985-7849@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-01-27 12:06 -------
In the operand scanner we try to be clever ...
else if (TREE_CODE (ptr) == INTEGER_CST)
{
/* If a constant is used as a pointer, we can't generate a real
operand for it but we mark the statement volatile to prevent
optimizations from messing things up. */
gimple_set_has_volatile_ops (stmt, true);
return;
but that of course misses the fact that we miss all necessary conflicts.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38985