OSDN Git Service

2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2005 23:00:06 +0000 (23:00 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2005 23:00:06 +0000 (23:00 +0000)
        * trans.c (gnat_gimplify_expr): Call
        recompute_tree_invarant_for_addr_expr when we change
        the operand of the ADDR_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100522 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/trans.c

index 2f7e1d8..68779b1 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * trans.c (gnat_gimplify_expr): Call
+       recompute_tree_invarant_for_addr_expr when we change
+       the operand of the ADDR_EXPR.
+
 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * misc.c: Don't include errors.h.
index 394ea1b..36b5ba2 100644 (file)
@@ -4526,6 +4526,7 @@ gnat_gimplify_expr (tree *expr_p, tree *pre_p, tree *post_p ATTRIBUTE_UNUSED)
          DECL_INITIAL (new_var) = TREE_OPERAND (expr, 0);
 
          TREE_OPERAND (expr, 0) = new_var;
+         recompute_tree_invarant_for_addr_expr (expr);
          return GS_ALL_DONE;
        }
       return GS_UNHANDLED;