This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/44885] [4.6 regression] miscompilation of gnat.dg/aliasing3.adb after mem-ref2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]