aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/spu
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 /gcc/config/spu
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
Diffstat (limited to 'gcc/config/spu')
-rw-r--r--gcc/config/spu/spu.c2
1 files changed, 1 insertions, 1 deletions
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);