rs6000-c.c (altivec_resolve_overloaded_builtin): Update build_indirect_ref calls.
authorShujing Zhao <pearly.zhao@oracle.com>
Thu, 17 Dec 2009 11:39:40 +0000 (11:39 +0000)
committerShujing Zhao <pzhao@gcc.gnu.org>
Thu, 17 Dec 2009 11:39:40 +0000 (11:39 +0000)
2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
Update build_indirect_ref calls.

From-SVN: r155309

gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c

index 8f921a4..669d959 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>
+
+       * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
+       Update build_indirect_ref calls.        
+
 2009-12-17  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/sync.md (IMODE): Remove mode iterator.
index 9435452..da5a360 100644 (file)
@@ -3365,7 +3365,7 @@ altivec_resolve_overloaded_builtin (location_t loc, tree fndecl,
       stmt = build_unary_op (loc, ADDR_EXPR, stmt, 0);
       stmt = convert (innerptrtype, stmt);
       stmt = build_binary_op (loc, PLUS_EXPR, stmt, arg2, 1);
-      stmt = build_indirect_ref (loc, stmt, NULL);
+      stmt = build_indirect_ref (loc, stmt, RO_NULL);
 
       return stmt;
     }
@@ -3444,7 +3444,7 @@ altivec_resolve_overloaded_builtin (location_t loc, tree fndecl,
       stmt = build_unary_op (loc, ADDR_EXPR, stmt, 0);
       stmt = convert (innerptrtype, stmt);
       stmt = build_binary_op (loc, PLUS_EXPR, stmt, arg2, 1);
-      stmt = build_indirect_ref (loc, stmt, NULL);
+      stmt = build_indirect_ref (loc, stmt, RO_NULL);
       stmt = build2 (MODIFY_EXPR, TREE_TYPE (stmt), stmt,
                     convert (TREE_TYPE (stmt), arg0));
       stmt = build2 (COMPOUND_EXPR, arg1_type, stmt, decl);