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
This commit is contained in:
Ulrich Weigand 2010-07-15 12:37:03 +00:00 committed by Ulrich Weigand
parent 0019d49828
commit 643afedb71
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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);