]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000-c.c (altivec_resolve_overloaded_builtin): Update calls to build_unary_op and...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Mon, 6 Oct 2008 22:10:52 +0000 (22:10 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 6 Oct 2008 22:10:52 +0000 (15:10 -0700)
2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
        Update calls to build_unary_op and build_indirect_ref for location
        changes.

From-SVN: r140915

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

index a3cec0635e968044ec60cb117d356082f6fc174e..a5d11b380040296e95686a6bee4b88fa15846cb7 100644 (file)
@@ -1,3 +1,9 @@
+2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
+       Update calls to build_unary_op and build_indirect_ref for location
+       changes.
+
 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
 
        build_modify_expr.
index ed9b6c036835d1ca55f9fe326e2791d40300beaa..f968b2f1467c6f8ac06476cea5e7173acf1d4678 100644 (file)
@@ -3097,10 +3097,10 @@ altivec_resolve_overloaded_builtin (tree fndecl, tree arglist)
 
       innerptrtype = build_pointer_type (arg1_inner_type);
 
-      stmt = build_unary_op (ADDR_EXPR, stmt, 0);
+      stmt = build_unary_op (input_location, ADDR_EXPR, stmt, 0);
       stmt = convert (innerptrtype, stmt);
       stmt = build_binary_op (input_location, PLUS_EXPR, stmt, arg2, 1);
-      stmt = build_indirect_ref (stmt, NULL, input_location);
+      stmt = build_indirect_ref (input_location, stmt, NULL);
 
       return stmt;
     }
@@ -3155,10 +3155,10 @@ altivec_resolve_overloaded_builtin (tree fndecl, tree arglist)
 
       innerptrtype = build_pointer_type (arg1_inner_type);
 
-      stmt = build_unary_op (ADDR_EXPR, stmt, 0);
+      stmt = build_unary_op (input_location, ADDR_EXPR, stmt, 0);
       stmt = convert (innerptrtype, stmt);
       stmt = build_binary_op (input_location, PLUS_EXPR, stmt, arg2, 1);
-      stmt = build_indirect_ref (stmt, NULL, input_location);
+      stmt = build_indirect_ref (input_location, stmt, NULL);
       stmt = build2 (MODIFY_EXPR, TREE_TYPE (stmt), stmt,
                     convert (TREE_TYPE (stmt), arg0));
       stmt = build2 (COMPOUND_EXPR, arg1_type, stmt, decl);