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

Reply via email to