aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-07-15 12:37:03 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2010-07-15 12:37:03 +0000
commit643afedb7144e247302b743e8fc351f25b65fdd1 (patch)
tree640a3c4cb6573f6f7a64d5f69c8d2a2e656b0fed
parent0019d49828d868ffec69eba1ea65e659a1aed0bf (diff)
downloadgcc-643afedb7144e247302b743e8fc351f25b65fdd1.zip
gcc-643afedb7144e247302b743e8fc351f25b65fdd1.tar.gz
gcc-643afedb7144e247302b743e8fc351f25b65fdd1.tar.bz2
re PR target/44877 (C++ compiler can no longer compile dealII for VSX/Altivec vectorization)
PR target/44877 * config/spu/spu.c (spu_expand_builtin_1): Allow references (as well as pointers) as argument to mask_for_load builtins. From-SVN: r162220
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/spu/spu.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3443ac8..46f3306 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ PR target/44877
+ * config/spu/spu.c (spu_expand_builtin_1): Allow references
+ (as well as pointers) as argument to mask_for_load builtins.
+
2010-07-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44946
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index 7c672b8..9a600eb 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -6514,7 +6514,7 @@ spu_expand_builtin_1 (struct spu_builtin_description *d,
/* get addr */
arg = CALL_EXPR_ARG (exp, 0);
- gcc_assert (TREE_CODE (TREE_TYPE (arg)) == POINTER_TYPE);
+ gcc_assert (POINTER_TYPE_P (TREE_TYPE (arg)));
op = expand_expr (arg, NULL_RTX, Pmode, EXPAND_NORMAL);
addr = memory_address (mode, op);