This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/44885] [4.6 regression] miscompilation of gnat.dg/aliasing3.adb after mem-ref2
- 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: 9 Jul 2010 13:28:02 -0000
- Subject: [Bug tree-optimization/44885] [4.6 regression] miscompilation of gnat.dg/aliasing3.adb after mem-ref2
- References: <bug-44885-226@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 2010-07-09 13:28 -------
Btw, can we amend the stmt verifier to check that the address of such
a thing is not taken? I'm thinking of verify_expr here:
case ADDR_EXPR:
{
tree tem;
gcc_assert (is_gimple_address (t));
/* Skip any references (they will be checked when we recurse down the
tree) and ensure that any variable used as a prefix is marked
addressable. */
for (x = TREE_OPERAND (t, 0);
handled_component_p (x);
x = TREE_OPERAND (x, 0))
;
Eric, you probably know best what should be checked, can you prepare a patch
(that hopefully passes testing ... huh)?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44885