aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2008-10-06 22:10:52 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2008-10-06 15:10:52 -0700
commitecbeb53b5654ccc6efdbdbdb47ef6e29271bb120 (patch)
treeed7729466c72062fe622d902738991c8eb9c08ee /gcc
parentc9f9eb5d07ca96c57d89e5cb8ba3b3dfe588e151 (diff)
downloadgcc-ecbeb53b5654ccc6efdbdbdb47ef6e29271bb120.zip
gcc-ecbeb53b5654ccc6efdbdbdb47ef6e29271bb120.tar.gz
gcc-ecbeb53b5654ccc6efdbdbdb47ef6e29271bb120.tar.bz2
rs6000-c.c (altivec_resolve_overloaded_builtin): Update calls to build_unary_op and build_indirect_ref for location changes.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000-c.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a3cec06..a5d11b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c
index ed9b6c0..f968b2f 100644
--- a/gcc/config/rs6000/rs6000-c.c
+++ b/gcc/config/rs6000/rs6000-c.c
@@ -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);